Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_stack_allocator.h
| Show All 14 Lines | |||||
| */ | */ | ||||
| #ifndef __UTIL_STACK_ALLOCATOR_H__ | #ifndef __UTIL_STACK_ALLOCATOR_H__ | ||||
| #define __UTIL_STACK_ALLOCATOR_H__ | #define __UTIL_STACK_ALLOCATOR_H__ | ||||
| #include <cstddef> | #include <cstddef> | ||||
| #include <memory> | #include <memory> | ||||
| #include "util_debug.h" | #include "util/util_debug.h" | ||||
| #include "util_types.h" | #include "util/util_types.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* Stack allocator for the use with STL. */ | /* Stack allocator for the use with STL. */ | ||||
| template <int SIZE, typename T> | template <int SIZE, typename T> | ||||
| class ccl_try_align(16) StackAllocator { | class ccl_try_align(16) StackAllocator { | ||||
| public: | public: | ||||
| typedef size_t size_type; | typedef size_t size_type; | ||||
| ▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines | |||||