JayBeams
0.1
Another project to have fun coding.
|
Type trait to evaluate if a collection of numbers (e.g. More...
#include <resize_if_applicable.hpp>
Public Types | |
using | type = decltype(check< C >(nullptr)) |
Static Public Attributes | |
static constexpr bool | value = type::value |
Static Private Member Functions | |
template<typename T > | |
static constexpr auto | check (T *) -> typename std::is_void< decltype(std::declval< T >().resize(std::declval< std::size_t >()))>::type |
template<typename T > | |
static constexpr std::false_type | check (...) |
Type trait to evaluate if a collection of numbers (e.g.
vector, multi_array) is resizable.
has_risize<C>::value is std::true_type if C is resizable. std::false_type otherwise.
C | collection of numbers type to be evaluated if it is resizable |
Definition at line 19 of file resize_if_applicable.hpp.
using jb::testing::has_resize< C >::type = decltype(check<C>(nullptr)) |
Definition at line 33 of file resize_if_applicable.hpp.
|
inlinestaticprivate |
Definition at line 22 of file resize_if_applicable.hpp.
|
inlinestaticprivate |
Definition at line 28 of file resize_if_applicable.hpp.
|
static |
Definition at line 34 of file resize_if_applicable.hpp.