summaryrefslogtreecommitdiffstats
path: root/library/cpp/netliba/socket/allocator.h
diff options
context:
space:
mode:
authormonster <[email protected]>2022-07-07 14:41:37 +0300
committermonster <[email protected]>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /library/cpp/netliba/socket/allocator.h
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
fix ya.make
Diffstat (limited to 'library/cpp/netliba/socket/allocator.h')
-rw-r--r--library/cpp/netliba/socket/allocator.h14
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