Bond
 
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>
14 class single_threaded_counter;
15
16 template <typename T = std::size_t>
17 class multi_threaded_counter;
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<
25 multi_threaded_counter<typename std::allocator_traits<Alloc>::size_type>>>
26 class capped_allocator;
27
28} } // namespace bond::ext
namespace bond
Definition: apply.h:17