Blender
V4.3
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
#ifndef __UTIL_MAP_H__
6
#define __UTIL_MAP_H__
7
8
#include <map>
9
#include <unordered_map>
10
11
CCL_NAMESPACE_BEGIN
12
13
using
std::map;
14
using
std::pair;
15
using
std::unordered_map;
16
using
std::unordered_multimap;
17
18
template
<
typename
T>
static
void
map_free_memory
(
T
&
data
)
19
{
20
/* Use swap() trick to actually free all internal memory. */
21
T
empty_data;
22
data
.swap(empty_data);
23
}
24
25
CCL_NAMESPACE_END
26
27
#endif
/* __UTIL_MAP_H__ */
data
data
Definition
bmesh_operator_api_inline.hh:159
map_free_memory
static void map_free_memory(T &data)
Definition
cycles/util/map.h:18
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
T
#define T
Definition
mball_tessellate.cc:273
CCL_NAMESPACE_BEGIN
Definition
python.cpp:44
Generated on Sat Oct 4 2025 05:32:23 for Blender by
doxygen
1.14.0