Compile time. In C++, runtime type information is stripped during compilation(without RTTI or virtual inheritance). It is not possible, in fact, to inspect the primitive type at runtime.
More Related Contents:
- What is the advantage of using forwarding references in range-based for loops?
- How much is the overhead of smart pointers compared to normal pointers in C++?
- Why is std::unordered_map slow, and can I use it more effectively to alleviate that?
- Does a C++11 range-based for loop condition get evaluated every cycle?
- Can the use of C++11’s ‘auto’ improve performance?
- Is the ranged based for loop beneficial to performance?
- c++11 regex slower than python
- Should I still return const objects in C++11? [duplicate]
- Why is this C++ wrapper class not being inlined away?
- Converting std::__cxx11::string to std::string
- C++ lambda with captures as a function pointer
- Will std::string always be null-terminated in C++11?
- SFINAE working in return type but not as template parameter
- Move assignment operator and `if (this != &rhs)`
- When to use the brace-enclosed initializer?
- Is there any guarantee of alignment of address return by C++’s new operation?
- When do I really need to use atomic instead of bool? [duplicate]
- error: use of deleted function
- A class name introduced inside a class is not treated as a nested class name
- Passing shared_ptr as shared_ptr
- lvalue to rvalue implicit conversion
- constexpr not compiling in VC2013
- C++11 virtual destructors and auto generation of move special functions
- reinterpret_cast from object to first member
- Calling delete on NULL pointers – C++03 vs C++11
- GCC std::thread not found in namespace std
- Is there a way to write make_unique() in VS2012?
- using extern template (C++11) to avoid instantiation
- narrowing conversion from unsigned to double
- Why does this simple std::thread example not work?