numeric_limits::is_specialized
Zkoušky, pokud je typ explicitní specializace definované v šabloně třídy numeric_limits.
static const bool is_specialized = false;
Vrácená hodnota
true Pokud má typ explicitní specializace definované v šabloně třídy. false Pokud tomu tak není.
Poznámky
Všechny Skalární typy než ukazatele mají explicitní specializace definované šablony třídy numeric_limits.
Příklad
// numeric_limits_is_specialized.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "Whether float objects have an explicit "
<< "specialization in the class: "
<< numeric_limits<float>::is_specialized
<< endl;
cout << "Whether float* objects have an explicit "
<< "specialization in the class: "
<< numeric_limits<float*>::is_specialized
<< endl;
cout << "Whether int objects have an explicit "
<< "specialization in the class: "
<< numeric_limits<int>::is_specialized
<< endl;
cout << "Whether int* objects have an explicit "
<< "specialization in the class: "
<< numeric_limits<int*>::is_specialized
<< endl;
}
Požadavky
Záhlaví:<omezení>
Obor názvů: std