Simple-Utility v2.3.1
Loading...
Searching...
No Matches
sl::concepts::initializes Concept Reference

Checks whether the target type is constructible from the source type. More...

#include <stl_extensions.hpp>

Concept definition

template<class TSource, class TTarget>
concept sl::concepts::initializes = std::constructible_from<TTarget, TSource>
Checks whether the target type is constructible from the source type.
Definition: stl_extensions.hpp:78

Detailed Description

Checks whether the target type is constructible from the source type.

This is the symmetrical counterpart of std::constructible_from concept with a single constructor argument.

Template Parameters
TSourceThe source type handed over to the constructor of the target
TTargetThe target type to check