2 // { dg-do compile { target c++11 } }
3 // { dg-options "-O2 -fno-strict-aliasing" }
5 template <class> struct A
8 template <typename> struct B
10 template <typename> struct C;
13 template <typename> class F;
16 void operator()(const D &, D);
27 template <typename _Key, typename, typename, typename _Compare, typename>
30 typedef _Key key_type;
31 template <typename _Key_compare> struct J
33 _Key_compare _M_key_compare;
38 A<int> _M_get_insert_unique_pos (const key_type &);
39 A<int> _M_get_insert_hint_unique_pos (H &);
40 template <typename... _Args> int _M_emplace_hint_unique (H, _Args &&...);
42 template <typename _Key, typename _Tp, typename _Compare = G,
43 typename _Alloc = F<A<_Tp> > >
46 typedef _Key key_type;
47 typedef _Key value_type;
48 typedef typename B<_Alloc>::template C<value_type> _Pair_alloc_type;
49 I<key_type, value_type, int, _Compare, _Pair_alloc_type> _M_t;
52 void operator[](key_type)
54 _M_t._M_emplace_hint_unique (0);
57 template <typename _Key, typename _Val, typename _KeyOfValue,
58 typename _Compare, typename _Alloc>
60 I<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_unique_pos (
63 _M_impl._M_key_compare (p1, 0);
65 template <typename _Key, typename _Val, typename _KeyOfValue,
66 typename _Compare, typename _Alloc>
68 I<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_hint_unique_pos (
71 _M_get_insert_unique_pos (0);
73 template <typename _Key, typename _Val, typename _KeyOfValue,
74 typename _Compare, typename _Alloc>
75 template <typename... _Args>
77 I<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique (
80 _M_get_insert_hint_unique_pos (p1);