1 #ifndef VIENNACL_TOOLS_SHARED_PTR_HPP
2 #define VIENNACL_TOOLS_SHARED_PTR_HPP
46 unsigned int val(){
return val_; }
62 template<
class U,
class Deleter>
95 template<
class U,
class Deleter>
101 T*
get()
const {
return pt; }
179 #endif // VIENNACL_UTILS_SHARED_PTR_HPP
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
viennacl::enable_if< viennacl::is_scalar< ScalarT1 >::value &&viennacl::is_scalar< ScalarT2 >::value >::type swap(ScalarT1 &s1, ScalarT2 &s2)
Swaps the contents of two scalars, data is copied.