⚗️ try different type alias
This commit is contained in:
parent
7429164843
commit
1ee61bf371
@ -23,10 +23,10 @@ template <class Key, class T, class IgnoredLess = std::less<Key>,
|
|||||||
using key_type = Key;
|
using key_type = Key;
|
||||||
using mapped_type = T;
|
using mapped_type = T;
|
||||||
using Container = std::vector<std::pair<const Key, T>, Allocator>;
|
using Container = std::vector<std::pair<const Key, T>, Allocator>;
|
||||||
using typename Container::iterator;
|
using iterator = typename Container::iterator;
|
||||||
using typename Container::const_iterator;
|
using const_iterator = typename Container::const_iterator;
|
||||||
using typename Container::size_type;
|
using size_type = typename Container::size_type;
|
||||||
using typename Container::value_type;
|
using value_type = typename Container::value_type;
|
||||||
|
|
||||||
// Explicit constructors instead of `using Container::Container`
|
// Explicit constructors instead of `using Container::Container`
|
||||||
// otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4)
|
// otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4)
|
||||||
|
|||||||
@ -17041,10 +17041,10 @@ template <class Key, class T, class IgnoredLess = std::less<Key>,
|
|||||||
using key_type = Key;
|
using key_type = Key;
|
||||||
using mapped_type = T;
|
using mapped_type = T;
|
||||||
using Container = std::vector<std::pair<const Key, T>, Allocator>;
|
using Container = std::vector<std::pair<const Key, T>, Allocator>;
|
||||||
using typename Container::iterator;
|
using iterator = typename Container::iterator;
|
||||||
using typename Container::const_iterator;
|
using const_iterator = typename Container::const_iterator;
|
||||||
using typename Container::size_type;
|
using size_type = typename Container::size_type;
|
||||||
using typename Container::value_type;
|
using value_type = typename Container::value_type;
|
||||||
|
|
||||||
// Explicit constructors instead of `using Container::Container`
|
// Explicit constructors instead of `using Container::Container`
|
||||||
// otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4)
|
// otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user