Blender V4.3
intern::memutil Namespace Reference

Namespaces

namespace  internal
 

Classes

class  AllocStringStorage
 

Functions

template<typename keyT , template< typename > typename hashT>
AllocStringStorage< keyT, hashT > & alloc_string_storage_get (const std::string &storage_identifier)
 

Function Documentation

◆ alloc_string_storage_get()

template<typename keyT , template< typename > typename hashT>
AllocStringStorage< keyT, hashT > & intern::memutil::alloc_string_storage_get ( const std::string & storage_identifier)

Return a reference to the AllocStringStorage static data matching the given storage_identifier, creating it if needed.

Note
The storage is thread_local data, so access to it is thread-safe as long as it is not shared between threads by the user code.

Definition at line 111 of file MEM_alloc_string_storage.hh.

References intern::memutil::internal::AllocStringStorageContainer::ensure_storage(), and intern::memutil::internal::ensure_storage_container().

Referenced by get_alloc_name().