Kiwaku 0.1-beta
Containers Well Made
 
Loading...
Searching...
No Matches
kwk::concepts::allocator Concept Reference

Allocator concept. More...

#include <kwk/concepts/allocator.hpp>

Detailed Description

Allocator concept.

A KIWAKU Allocator is a type which instances can be passed to the following free functions:

  • allocate(Allocator& alloc, std::size_t size)
  • deallocate(Allocator& alloc, void* ptr)

Concept definition

template<typename Allocator>
concept kwk::concepts::allocator = requires(Allocator& alloc, void* ptr, std::size_t size)
{
}
Allocator concept.
Definition allocator.hpp:22
constexpr __::size_ size
Size setting for kwk::table and kwk::view.
Definition size.hpp:46
constexpr auto fixed
Provides a short-cut to define a std::integral_constant value from a literal integer.
Definition fixed.hpp:107
void deallocate(any_allocator &a, void *ptr)
Deallocates data from an opaque allocator instance.
Definition any_allocator.hpp:118
auto allocate(any_allocator &a, std::size_t n)
Allocates data from an opaque allocator instance.
Definition any_allocator.hpp:107