Blender V5.0
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
11
12using std::map;
13using std::pair;
14using std::unordered_map;
15using std::unordered_multimap;
16
17template<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
BMesh const char void * data
static void map_free_memory(T &data)
#define CCL_NAMESPACE_END
#define T