FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_concept::IsInstanceOf Concept Reference

Concept to check if a type is an instance of a specific template. More...

#include <concept.hpp>

Concept definition

template<typename T, template< typename... > typename U>
Concept to check if a type is an instance of a specific template.
Definition concept.hpp:72
constexpr bool is_instance_of_v
Type trait to check if a type is an instance of a template.
Definition concept.hpp:50

Detailed Description

Concept to check if a type is an instance of a specific template.

Template Parameters
TThe type to check
UThe template to match against

Example:

static_assert(IsInstanceOf<std::vector<int>, std::vector>);
static_assert(!IsInstanceOf<std::list<int>, std::vector>);

Definition at line 72 of file concept.hpp.