diff options
| author | monster <[email protected]> | 2022-07-07 14:41:37 +0300 |
|---|---|---|
| committer | monster <[email protected]> | 2022-07-07 14:41:37 +0300 |
| commit | 06e5c21a835c0e923506c4ff27929f34e00761c2 (patch) | |
| tree | 75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /library/cpp/netliba/socket/allocator.h | |
| parent | 03f024c4412e3aa613bb543cf1660176320ba8f4 (diff) | |
fix ya.make
Diffstat (limited to 'library/cpp/netliba/socket/allocator.h')
| -rw-r--r-- | library/cpp/netliba/socket/allocator.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/library/cpp/netliba/socket/allocator.h b/library/cpp/netliba/socket/allocator.h new file mode 100644 index 00000000000..f09b0dabcfa --- /dev/null +++ b/library/cpp/netliba/socket/allocator.h @@ -0,0 +1,14 @@ +#pragma once + +#ifdef NETLIBA_WITH_NALF +#include <library/cpp/malloc/nalf/alloc_helpers.h> +using TWithCustomAllocator = TWithNalfIncrementalAlloc; +template <typename T> +using TCustomAllocator = TNalfIncrementalAllocator<T>; +#else +#include <memory> +typedef struct { +} TWithCustomAllocator; +template <typename T> +using TCustomAllocator = std::allocator<T>; +#endif |
