Simple-Vector v1.3.0
sl::vec::addable Concept Reference

Checks if the given type can be used in immutable plus operations. More...

#include <Concepts.hpp>

Concept definition

template<class TFrom, class TTo TFrom>
concept sl::vec::addable = requires(TTo lhs, TFrom rhs)
{
{ lhs + rhs } -> std::convertible_to<TTo>;
}
Checks if the given type can be used in immutable plus operations.
Definition: Concepts.hpp:87

Detailed Description

Checks if the given type can be used in immutable plus operations.

Template Parameters
TFromRight-hand-side type of operation
TToLeft-hand-side type of operation and expected result type