KTL
shared_fwd.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
type_allocator_fwd.h
"
4
5
#include <atomic>
6
7
namespace
ktl
8
{
9
// Wrapper class for an integer with std::atomic syntax
10
template
<
typename
T>
11
class
notomic;
12
13
// Wrapper class for making allocator ref-counted
14
template
<
typename
Alloc,
template
<
typename
>
typename
Atomic = notomic>
15
class
shared;
16
20
template
<
typename
Alloc>
21
using
atomic_shared
=
shared<Alloc, std::atomic>
;
22
26
template
<
typename
T,
typename
Alloc>
27
using
type_shared
=
type_allocator<T, shared<Alloc>
>;
28
32
template
<
typename
T,
typename
Alloc>
33
using
type_atomic_shared
=
type_allocator<T, atomic_shared<Alloc>
>;
34
}
ktl::shared
Definition:
shared.h:42
ktl::type_allocator
Wrapper class for making an untyped allocator into a typed allocator.
Definition:
type_allocator.h:20
ktl
Definition:
cascading.h:15
type_allocator_fwd.h
include
ktl
allocators
shared_fwd.h
Generated by
1.9.1