Loading...
Searching...
No Matches
bbm::concepts::attribute Concept Reference

attribute concept More...

#include <attribute.h>

Concept definition

template<typename T>
concept bbm::concepts::attribute = requires(std::decay_t<T>& attr)
{
typename std::decay_t<T>::type;
{ attr.value() } -> std::same_as<typename std::decay_t<T>::type&>;
{ std::as_const(attr).value() } -> std::same_as<const typename std::decay_t<T>::type&>;
static_cast<typename std::decay_t<T>::type&>(attr);
static_cast<const typename std::decay_t<T>::type&>(attr);
}
attribute_property concept
Definition: attribute.h:22
attribute concept
Definition: attribute.h:39

Detailed Description

attribute concept

Each attribute provides the following: