A definition for a static data member or static data member template may be provided in a namespace scope enclosing the definition of the static member's class template. [ Example:
template<class T> class X { static T s; }; template<class T> T X<T>::s = 0; struct limits { template<class T> static const T min; }; template<class T> const T limits::min = { };
— end example ]
An explicit specialization of a static data member declared as an array of unknown bound can have a different bound from its definition, if any. [ Example:
template <class T> struct A { static int i[]; }; template <class T> int A<T>::i[4]; template <> int A<int>::i[] = { 1 };
— end example ]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4