aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/aws-crt-cpp/source/Allocator.cpp
blob: a27071ef5e6f78131a47023f0ae3c9afd6ac8102 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */
#include <aws/crt/Allocator.h>

namespace Aws
{
    namespace Crt
    {

        Allocator *DefaultAllocatorImplementation() noexcept { return aws_default_allocator(); }

        Allocator *DefaultAllocator() noexcept { return DefaultAllocatorImplementation(); }

        Allocator *g_allocator = Aws::Crt::DefaultAllocatorImplementation();

        Allocator *ApiAllocator() noexcept { return g_allocator; }

    } // namespace Crt
} // namespace Aws