StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Type::Pair Concept Reference

Type with accessible first and second members. More...

#include <StormByte/type_traits/wrappers.hxx>

Concept definition

template<typename T>
concept StormByte::Type::Pair = requires(T t) {
t.first;
t.second;
}
Type with accessible first and second members.
Definition wrappers.hxx:185

Detailed Description

Type with accessible first and second members.

Template Parameters
TType to test.

Broader than std::pair: any struct with those members matches. That is intentional and must stay that way.

template<Type::Pair T>
void process(T pair);