aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/netliba/socket/allocator.h
blob: f09b0dabcfa82fe79e4588b9cd1682169e5ab389 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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