#include </home/runner/work/tfel/tfel/include/TFEL/Metaprogramming/HasRandomAccessConstIterator.hxx>
|
|
static constexpr bool | cond = sizeof(Test(MakeSubsA())) == sizeof(Small) |
| | result of the metafunction.
|
|
template<typename B>
requires ( std::is_same_v<typename std::iterator_traits< typename B::const_iterator>::iterator_category, std::random_access_iterator_tag>) |
| static Small | Test (const Subs< B >) |
|
static Big | Test (...) |
|
static Subs< A > | MakeSubsA () |
| | A function returning a T. A small trick for classes that are not default constructible.
|
template<typename A>
class tfel::meta::HasRandomAccessConstIterator< A >
- Parameters
-
- Returns
- bool cond, true if the type defines a random access const_iterator.
The documentation for this class was generated from the following file: