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

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

#include <Concepts.hpp>

Concept definition

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

Detailed Description

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

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