{"title":"size_t\u3068\u5024-1","blog_url":"https://yohhoy.hatenadiary.jp/","provider_url":"https://hatena.blog","categories":["C","C++"],"height":"190","author_url":"https://blog.hatena.ne.jp/yohhoy/","provider_name":"Hatena Blog","image_url":null,"blog_title":"yohhoy\u306e\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20160220%2Fp1\" title=\"size_t\u3068\u5024-1 - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://yohhoy.hatenadiary.jp/entry/20160220/p1","author_name":"yohhoy","published":"2016-02-20 00:00:00","description":"C/C++\u8a00\u8a9e\u306b\u304a\u3051\u308b\u7b26\u53f7\u7121\u3057\u578b\u3068\u8ca0\u6570\u306e\u6271\u3044\u306b\u3064\u3044\u3066\u30e1\u30e2\u3002\u5024-1\u3092size_t\u306a\u3069\u306e\u7b26\u53f7\u306a\u3057\u6574\u6570\u578b*1\u3078\u5909\u63db\u4ee3\u5165\u3059\u308b\u5834\u5408\u3001\u540c\u578b\u306e\u6700\u5927\u5024\u3068\u306a\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u308b\u3002\u3053\u306e\u632f\u308b\u821e\u3044\u306f\u7b26\u53f7\u4ed8\u304d\u6574\u6570\u578b\u306e\u5185\u90e8\u30d3\u30c3\u30c8\u8868\u73fe\u306b\u4f9d\u5b58\u3057\u306a\u3044\u3002*2 const size_t nmax = -1; // nmax\u306fsize_t\u578b\u306e\u6700\u5927\u5024(\u5168\u30d3\u30c3\u30c81) C99 6.3.1.3/p2\u3088\u308a\u5f15\u7528\u3002\u5024-1\u306f (\u5909\u63db\u5148\u306e\u578b\u306e\u6700\u5927\u5024 + 1) - 1 \u3068\u306a\u308a\u3001\u305d\u306e\u7d50\u679c\u306f\u7b26\u53f7\u306a\u3057\u6574\u6570\u578b\u306e\u6700\u5927\u5024\u306b\u7b49\u3057\u3044\u3002 Otherwise, if the new type is unsigned, the value is converted by re\u2026","width":"100%","type":"rich","version":"1.0"}