Taken from https://stackoverflow.com/a/257382 Evaluating constexpr (Has_size<T>::value) in a templated method over class T will return whether T is a standard container or a singleton.
More...
#include <MooseUtils.h>
|
static constexpr bool | value = sizeof(test<T>(0)) == sizeof(Yes) |
|
|
template<typename C > |
static Yes | test (decltype(&C::size)) |
|
template<typename C > |
static No | test (...) |
|
template<typename T>
class MooseUtils::Has_size< T >
Taken from https://stackoverflow.com/a/257382 Evaluating constexpr (Has_size<T>::value) in a templated method over class T will return whether T is a standard container or a singleton.
Definition at line 666 of file MooseUtils.h.
◆ Yes
◆ test() [1/2]
template<typename T >
template<typename C >
◆ test() [2/2]
template<typename T >
template<typename C >
◆ value
The documentation for this class was generated from the following file: