Blender
V4.5
intern
cycles
util
cycles/util/map.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2
*
3
* SPDX-License-Identifier: Apache-2.0 */
4
5
#pragma once
6
7
#include <map>
8
#include <unordered_map>
9
10
CCL_NAMESPACE_BEGIN
11
12
using
std::map;
13
using
std::pair;
14
using
std::unordered_map;
15
using
std::unordered_multimap;
16
17
template
<
typename
T>
static
void
map_free_memory
(T &
data
)
18
{
19
/* Use swap() trick to actually free all internal memory. */
20
T empty_data;
21
data
.swap(empty_data);
22
}
23
24
CCL_NAMESPACE_END
data
std::string data
Definition
BLI_set_test.cc:632
map_free_memory
static void map_free_memory(T &data)
Definition
cycles/util/map.h:17
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
CCL_NAMESPACE_BEGIN
Definition
python.cpp:37
Generated on Fri Apr 3 2026 06:33:18 for Blender by
doxygen
1.11.0