Changeset 446
- Timestamp:
- 07/30/15 12:08:39 (10 years ago)
- Location:
- trunk/nv/stl
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/stl/algorithm.hh
r445 r446 18 18 #include <nv/stl/algorithm/copy.hh> 19 19 #include <nv/stl/algorithm/fill.hh> 20 #include <nv/stl/algorithm/heap.hh> 20 21 #include <nv/stl/utility.hh> 21 22 #include <nv/stl/iterator.hh> -
trunk/nv/stl/type_traits/experimental.hh
r410 r446 44 44 #if NV_COMPILER == NV_MSVC 45 45 #define NV_VOID_DECLTYPE( EXPR ) ::nv::match_ptr_t< &EXPR > 46 #else 47 #define NV_VOID_DECLTYPE( EXPR ) decltype( EXPR ) 48 #endif 46 49 #define NV_GENERATE_HAS_MEMBER( MEMBER ) \ 47 50 template< typename, typename = nv::void_t<> > struct has_##MEMBER##_member : nv::false_type {}; \ 48 51 template< typename T > struct has_##MEMBER##_member <T, nv::void_t< NV_VOID_DECLTYPE( T::MEMBER ) > > : true_type{}; 49 #else50 #define NV_VOID_DECLTYPE( EXPR ) decltype( EXPR )51 #define NV_GENERATE_HAS_MEMBER( MEMBER ) \52 template< typename, typename = nv::void_t<> > struct has_##MEMBER##_member : nv::false_type {}; \53 template< typename T > struct has_##MEMBER##_member <T, nv::void_t< NV_VOID_DECLTYPE( T::MEMBER ) > > : true_type{};54 #endif55 52 56 53 namespace nv
Note: See TracChangeset
for help on using the changeset viewer.