Blender
V3.3
intern
cycles
util
cycles/util/map.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: Apache-2.0
2
* Copyright 2011-2022 Blender Foundation */
3
4
#ifndef __UTIL_MAP_H__
5
#define __UTIL_MAP_H__
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
25
26
#endif
/* __UTIL_MAP_H__ */
data
data
Definition:
bmesh_operator_api_inline.h:157
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition:
cuda/compat.h:9
map_free_memory
static void map_free_memory(T &data)
Definition:
cycles/util/map.h:17
T
#define T
Definition:
mball_tessellate.c:264
CCL_NAMESPACE_BEGIN
Definition:
python.cpp:37
map
SocketIndexByIdentifierMap * map
Definition:
node_tree_ref.cc:332
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1