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

#include <hxutility.h>

Concept definition

template<typename from_t_, typename to_t_>
concept hxsame_as = hxis_same_<from_t_, to_t_>::value
hxsame_as - A concept that requires two types to be the same.
Definition hxutility.h:265

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.