{"description":"Variable templates \u306f\u5b9a\u6570\u3092\u4efb\u610f\u306e\u578b\u3067\u5b9a\u7fa9\u3059\u308b\u4e8b\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u6a5f\u80fd\u3067\u3059\u3002 \u4ee5\u524d\u306e\u66f8\u304d\u65b9\u3067\u306f \u03c0\u306a\u3069\u306e\u5b9a\u6570\u3092\u4efb\u610f\u306e\u578b\u3067\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5834\u5408\u3001 template<typename T> struct PI{ static const T value; }; template<typename T> const T PI<T>::value = T(3.1415926535897932385); float f = PI<float>::value; double d = PI<double>::value; \u3068\u3001\u3044\u3046\u3088\u3046\u306a\u66f8\u304d\u65b9\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002 Variable \u2026","image_url":null,"blog_title":"Secret Garden(Instrumental)","height":"190","provider_name":"Hatena Blog","blog_url":"https://secret-garden.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/osyo-manga/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F03%2F30%2F142740\" title=\"C++14: Variable templates - Secret Garden(Instrumental)\" 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://secret-garden.hatenablog.com/entry/2015/03/30/142740","author_name":"osyo-manga","title":"C++14: Variable templates","version":"1.0","width":"100%","provider_url":"https://hatena.blog","categories":["C++"],"published":"2015-03-30 14:27:40"}