xentara-utils v1.2.1
Xentara utilities library
Loading...
Searching...
No Matches
xentara::utils::tools::Allocator Concept Reference

A concept for pointers that can be nulled. More...

#include <tools/Concepts.hpp>

Concept definition

template<typename Type, typename ValueType>
concept xentara::utils::tools::Allocator = std::regular<Type> && requires(Type allocator)
{
typename Type::value_type;
requires requires(typename std::allocator_traits<Type>::size_type size, typename std::allocator_traits<Type>::pointer pointer)
{
{ allocator.deallocate(pointer, size) };
};
}
A concept for pointers that can be nulled.
Definition Concepts.hpp:139
T make_unique(T... args)

Detailed Description

A concept for pointers that can be nulled.