Changeset 229dff7b in mainline


Ignore:
Timestamp:
2018-07-05T21:41:20Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
82ef902
Parents:
392b0ab3
git-author:
Dzejrou <dzejrou@…> (2018-03-11 14:15:34)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:20)
Message:

cpp: added cv adding metafunctions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/type_traits.hpp

    r392b0ab3 r229dff7b  
    798798
    799799    template<class T>
    800     struct remove_volatile;
     800    struct remove_volatile: aux::type_is<T>
     801    { /* DUMMY BODY */ };
     802
     803    template<class T>
     804    struct remove_volatile<T volatile>: aux::type_is<T>
     805    { /* DUMMY BODY */ };
    801806
    802807    template<class T>
     
    817822
    818823    template<class T>
    819     struct add_const;
    820 
    821     template<class T>
    822     struct add_volatile;
    823 
    824     template<class T>
    825     struct add_cv;
     824    struct add_const: aux::type_is<T const>
     825    { /* DUMMY BODY */ };
     826
     827    template<class T>
     828    struct add_volatile: aux::type_is<T volatile>
     829    { /* DUMMY BODY */ };
     830
     831    template<class T>
     832    struct add_cv: aux::type_is<T const volatile>
     833    { /* DUMMY BODY */ };
    826834
    827835    template<class T>
Note: See TracChangeset for help on using the changeset viewer.