libhatchet
Loading...
Searching...
No Matches
hxsame_as Concept Reference

#include <hxkey.hpp>

Concept definition

template<typename from_t_, typename to_t_>
hxsame_as - A concept that requires two types to be the same.
Definition hxkey.hpp:51
static constexpr bool value
Definition hxutility.h:124

Detailed Description

hxsame_as - A concept that requires two types to be the same.

Used with the -> return-type constraint syntax in requires-expressions to enforce that a return type is exactly to_t rather than merely convertible.

  • from_t : The first type.
  • to_t : The second type.