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

Concept for std::variant types. More...

#include <concept.hpp>

Concept definition

template<typename T, typename... Args>
Concept to check if a type is an instance of a specific template.
Definition concept.hpp:72
Concept for std::variant types.
Definition concept.hpp:172

Detailed Description

Concept for std::variant types.

Template Parameters
TThe type to check

Checks if a type is a std::variant instantiation.

Example:

using MyVariant = std::variant<int, std::string>;
static_assert(Variant<MyVariant>);

Definition at line 172 of file concept.hpp.