KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
Loading...
Searching...
No Matches
kamping::is_contiguous_sized_range< T > Struct Template Reference

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.
 

Detailed Description

template<typename T>
struct kamping::is_contiguous_sized_range< T >

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.


The documentation for this struct was generated from the following file: