Inviwo  0.9.10.1
Inviwo documentation
inviwo::util::is_container< T > Class Template Reference

#include <stdextensions.h>

Static Public Attributes

static const bool value = decltype(test<test_type>(0))::value
 

Detailed Description

template<typename T>
class inviwo::util::is_container< T >

A type trait for std container types from: http://stackoverflow.com/a/16316640 This is a slightly modified version to avoid constexpr.

Requirements on Container T:

T::iterator = T::begin();
T::iterator = T::end();
T::const_iterator = T::begin() const;
T::const_iterator = T::end() const;
*T::iterator = T::value_type &
*T::const_iterator = T::value_type const &

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