]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/util/regression/trait/assoc/type_trait.hpp
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / util / regression / trait / assoc / type_trait.hpp
index c7ce5f7a314c82044686709d236925ce3dcdd58d..b2a25689394f5e6cf414f4080010a8466f79afa3 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2005-2022 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the terms
@@ -51,11 +51,11 @@ namespace __gnu_pbds
       {
        typedef Cntnr cntnr;
        typedef typename cntnr::key_type key_type;
-       typedef typename cntnr::const_key_reference const_key_reference;
+       typedef typename cntnr::key_const_reference key_const_reference;
        typedef typename cntnr::value_type value_type;
        typedef typename cntnr::const_reference const_reference;
        typedef typename cntnr::mapped_type mapped_type;
-       typedef typename cntnr::const_mapped_reference const_mapped_reference;
+       typedef typename cntnr::mapped_const_reference mapped_const_reference;
 
        template<typename Gen>
        static key_type
@@ -67,14 +67,14 @@ namespace __gnu_pbds
         generate_value(Gen& r_gen, size_t max)
        { return generate_value(r_gen, max, value_type()); }
 
-       static const_key_reference
+       static key_const_reference
         extract_key(const_reference r_val)
        { return extract_key_imp(r_val); }
 
       private:
        typedef typename cntnr::allocator_type::template rebind<basic_type>::other
        basic_type_rebind;
-       
+
        typedef typename basic_type_rebind::const_reference basic_type_const_reference;
 
        typedef typename cntnr::allocator_type::template rebind<std::pair<const basic_type, basic_type> >::other pair_type_rebind;
@@ -82,7 +82,7 @@ namespace __gnu_pbds
 
        template<typename Gen>
        static value_type
-        generate_value(Gen& r_gen, size_t max, __gnu_pbds::null_mapped_type)
+        generate_value(Gen& r_gen, size_t max, __gnu_pbds::null_type)
        { return basic_type(r_gen, max); }
 
        template<typename Gen>
@@ -92,15 +92,15 @@ namespace __gnu_pbds
 
        template<typename Gen>
        static value_type
-        generate_value(Gen& gen, size_t max, 
+        generate_value(Gen& gen, size_t max,
                       std::pair<const basic_type, basic_type>)
        { return std::make_pair(basic_type(gen, max), basic_type(gen, max)); }
 
-       static const_key_reference
+       static key_const_reference
         extract_key_imp(basic_type_const_reference r_val)
        { return r_val; }
 
-       static const_key_reference
+       static key_const_reference
         extract_key_imp(pair_type_const_reference r_val)
        { return r_val.first; }
       };
@@ -108,4 +108,4 @@ namespace __gnu_pbds
   } // namespace test
 } // namespace __gnu_pbds
 
-#endif 
+#endif