Bond
 
All Classes Namespaces Files Functions Variables Typedefs Friends Pages
Loading...
Searching...
No Matches
capped_allocator_fwd.h
1// Copyright (c) Microsoft. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4#pragma once
5
6#include <bond/core/config.h>
7
8#include <cstdint>
9#include <memory>
10
11namespace bond { namespace ext
12{
13 template <typename T = std::size_t>
15
16 template <typename T = std::size_t>
18
19 template <typename Counter = multi_threaded_counter<>>
20 class shared_counter;
21
22 template <
23 typename Alloc = std::allocator<char>,
24 typename Counter = shared_counter<
26 class capped_allocator;
27
28} } // namespace bond::ext
Definition capped_allocator.h:70
Multi-threaded counter to be used with capped_allocator.
Definition multi_threaded_counter.h:23
Shared counter to be used with capped_allocator.
Definition shared_counter.h:23
Single-threaded counter to be used with capped_allocator.
Definition single_threaded_counter.h:20
namespace bond
Definition apply.h:17