xentara-utils v2.0.4
The Xentara Utility Library
Loading...
Searching...
No Matches
xentara::utils::tools::Allocator Concept Reference

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

#include <xentara/utils/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:169
T make_unique(T... args)

Detailed Description

A concept for pointers that can be nulled.