Changeset 387 for trunk


Ignore:
Timestamp:
06/06/15 16:00:35 (10 years ago)
Author:
epyon
Message:
  • utility - pair/make_pair, split into sub headers
  • functional - function objects, reference_wrapper, ref, cref
Location:
trunk/nv/stl
Files:
10 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/stl/functional.hh

    r386 r387  
    1414#define NV_STL_FUNCTIONAL_HH
    1515
    16 #include <nv/core/common.hh>
     16#include <nv/stl/functional/common.hh>
    1717#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>
    1823
    1924#endif // NV_STL_TYPE_TRAITS_HH
  • trunk/nv/stl/functional/hash.hh

    r386 r387  
    1414#define NV_STL_FUNCTIONAL_HASH_HH
    1515
    16 #include <nv/core/common.hh>
     16#include <nv/stl/functional/common.hh>
    1717#include <nv/stl/limits.hh>
    1818#include <nv/stl/type_traits/properties.hh>
  • trunk/nv/stl/type_traits/transforms.hh

    r385 r387  
    201201                        remove_extent_t<U>*,
    202202                        conditional_t <
    203                                 is_function<U>::value,
    204                                 add_pointer_t<U>,
    205                                 remove_cv_t<U>
     203                        is_function<U>::value,
     204                        add_pointer_t<U>,
     205                        remove_cv_t<U>
    206206                        >
    207207                > type;
    208208        };
    209209
    210         template< typename T > 
     210        template< typename T >
    211211        using decay_t = typename decay<T>::type;
    212212
  • trunk/nv/stl/utility.hh

    r385 r387  
    1414#define NV_STL_UTILITY_HH
    1515
    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>
    4418
    4519#endif // NV_STL_UTILITY_HH
Note: See TracChangeset for help on using the changeset viewer.