|
KaMPIng 0.2.0
Flexible and (near) zero-overhead C++ bindings for MPI
|
A type trait that checks if a type T is a contiguous and sized range, i.e., it is a range and has std::size and std::data defined.
More...
#include <traits.hpp>
Static Public Member Functions | |
| template<typename S > | |
| static auto | test (int) -> decltype(std::size(std::declval< S >()), std::data(std::declval< S >()), std::true_type{}) |
Only enable this overload if std::size and std::data are defined for S. | |
| template<typename > | |
| static auto | test (...) -> std::false_type |
| Fallback overload. | |
Static Public Attributes | |
| static constexpr bool | value = decltype(test<T>(0))::value |
| The value of the trait. | |
A type trait that checks if a type T is a contiguous and sized range, i.e., it is a range and has std::size and std::data defined.