Changeset 387
- Timestamp:
- 06/06/15 16:00:35 (10 years ago)
- Location:
- trunk/nv/stl
- Files:
-
- 10 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/stl/functional.hh
r386 r387 14 14 #define NV_STL_FUNCTIONAL_HH 15 15 16 #include <nv/ core/common.hh>16 #include <nv/stl/functional/common.hh> 17 17 #include <nv/stl/functional/hash.hh> 18 #include <nv/stl/functional/reference.hh> 19 #include <nv/stl/functional/bitwise_ops.hh> 20 #include <nv/stl/functional/logical_ops.hh> 21 #include <nv/stl/functional/arithmetic_ops.hh> 22 #include <nv/stl/functional/comparisons.hh> 18 23 19 24 #endif // NV_STL_TYPE_TRAITS_HH -
trunk/nv/stl/functional/hash.hh
r386 r387 14 14 #define NV_STL_FUNCTIONAL_HASH_HH 15 15 16 #include <nv/ core/common.hh>16 #include <nv/stl/functional/common.hh> 17 17 #include <nv/stl/limits.hh> 18 18 #include <nv/stl/type_traits/properties.hh> -
trunk/nv/stl/type_traits/transforms.hh
r385 r387 201 201 remove_extent_t<U>*, 202 202 conditional_t < 203 204 205 203 is_function<U>::value, 204 add_pointer_t<U>, 205 remove_cv_t<U> 206 206 > 207 207 > type; 208 208 }; 209 209 210 template< typename T > 210 template< typename T > 211 211 using decay_t = typename decay<T>::type; 212 212 -
trunk/nv/stl/utility.hh
r385 r387 14 14 #define NV_STL_UTILITY_HH 15 15 16 #include <nv/core/common.hh> 17 #include <nv/stl/type_traits/common.hh> 18 19 namespace nv 20 { 21 22 // TODO: change to swap<T> once you get rid of STL 23 template< typename T, typename U > 24 void swap( T& x, U& y ) 25 { 26 T t = move( x ); 27 x = move( y ); 28 y = move( t ); 29 } 30 31 template < typename T > 32 inline const T& max( const T& a, const T& b ) 33 { 34 return a < b ? b : a; 35 } 36 37 template < typename T > 38 inline const T& min( const T& a, const T& b ) 39 { 40 return a > b ? b : a; 41 } 42 43 } 16 #include <nv/stl/utility/common.hh> 17 #include <nv/stl/utility/pair.hh> 44 18 45 19 #endif // NV_STL_UTILITY_HH
Note: See TracChangeset
for help on using the changeset viewer.