19template <
typename TVal
idator,
typename TBase>
20class CustomValidator :
public TBase
22 using BaseImpl = TBase;
23 using Validator = TValidator;
27 using ValueType =
typename BaseImpl::ValueType;
29 CustomValidator() =
default;
31 explicit CustomValidator(
const ValueType& val)
36 explicit CustomValidator(ValueType&& val)
37 : BaseImpl(
std::move(val))
41 CustomValidator(
const CustomValidator&) =
default;
42 CustomValidator(CustomValidator&&) =
default;
43 CustomValidator& operator=(
const CustomValidator&) =
default;
44 CustomValidator& operator=(CustomValidator&&) =
default;
48 return BaseImpl::valid() && (Validator()(*this));
Main namespace for all classes / functions of COMMS library.