devicescratch.h
Go to the documentation of this file.
1 #ifndef TTG_DEVICESCRATCH_H
2 #define TTG_DEVICESCRATCH_H
3 
4 #include "ttg/devicescope.h"
5 #include "ttg/fwd.h"
6 
7 namespace ttg {
8 
9 template<typename T>
10 using devicescratch = TTG_IMPL_NS::devicescratch<T>;
11 
12 template<typename T>
13 auto make_scratch(T* val, ttg::scope scope, std::size_t count = 1) {
14  return devicescratch<T>(val, scope, count);
15 }
16 
17 } // namespace ttg
18 
19 #endif // TTG_DEVICESCRATCH_H
top-level TTG namespace contains runtime-neutral functionality
Definition: keymap.h:8
scope
Definition: devicescope.h:5
auto make_scratch(T *val, ttg::scope scope, std::size_t count=1)
Definition: devicescratch.h:13