TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
Loading...
Searching...
No Matches
tec::is_container< T, typename > Struct Template Reference

Trait to detect whether a type behaves like a standard container. More...

#include <tec_container.hpp>

Inheritance diagram for tec::is_container< T, typename >:

Detailed Description

template<typename T, typename = void>
struct tec::is_container< T, typename >

Trait to detect whether a type behaves like a standard container.

This trait is true for types that provide the following member functions:

It works with most STL containers (std::vector, std::list, std::deque, std::set, std::unordered_* containers, etc.) and any user-defined type that follows the same interface.

Template Parameters
TType to check
<unnamed>SFINAE parameter used for specialization

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