visibility-decoration.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@114559 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
828948148d
commit
b9af2eae4a
@ -180,7 +180,7 @@ template<class Callable, class ...Args>
|
|||||||
|
|
||||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||||
|
|
||||||
class recursive_mutex
|
class _LIBCPP_VISIBLE recursive_mutex
|
||||||
{
|
{
|
||||||
pthread_mutex_t __m_;
|
pthread_mutex_t __m_;
|
||||||
|
|
||||||
@ -198,10 +198,11 @@ public:
|
|||||||
void unlock();
|
void unlock();
|
||||||
|
|
||||||
typedef pthread_mutex_t* native_handle_type;
|
typedef pthread_mutex_t* native_handle_type;
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
native_handle_type native_handle() {return &__m_;}
|
native_handle_type native_handle() {return &__m_;}
|
||||||
};
|
};
|
||||||
|
|
||||||
class timed_mutex
|
class _LIBCPP_VISIBLE timed_mutex
|
||||||
{
|
{
|
||||||
mutex __m_;
|
mutex __m_;
|
||||||
condition_variable __cv_;
|
condition_variable __cv_;
|
||||||
@ -218,6 +219,7 @@ public:
|
|||||||
void lock();
|
void lock();
|
||||||
bool try_lock();
|
bool try_lock();
|
||||||
template <class _Rep, class _Period>
|
template <class _Rep, class _Period>
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
bool try_lock_for(const chrono::duration<_Rep, _Period>& __d)
|
bool try_lock_for(const chrono::duration<_Rep, _Period>& __d)
|
||||||
{return try_lock_until(chrono::monotonic_clock::now() + __d);}
|
{return try_lock_until(chrono::monotonic_clock::now() + __d);}
|
||||||
template <class _Clock, class _Duration>
|
template <class _Clock, class _Duration>
|
||||||
@ -242,7 +244,7 @@ timed_mutex::try_lock_until(const chrono::time_point<_Clock, _Duration>& __t)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
class recursive_timed_mutex
|
class _LIBCPP_VISIBLE recursive_timed_mutex
|
||||||
{
|
{
|
||||||
mutex __m_;
|
mutex __m_;
|
||||||
condition_variable __cv_;
|
condition_variable __cv_;
|
||||||
@ -260,6 +262,7 @@ public:
|
|||||||
void lock();
|
void lock();
|
||||||
bool try_lock();
|
bool try_lock();
|
||||||
template <class _Rep, class _Period>
|
template <class _Rep, class _Period>
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
bool try_lock_for(const chrono::duration<_Rep, _Period>& __d)
|
bool try_lock_for(const chrono::duration<_Rep, _Period>& __d)
|
||||||
{return try_lock_until(chrono::monotonic_clock::now() + __d);}
|
{return try_lock_until(chrono::monotonic_clock::now() + __d);}
|
||||||
template <class _Clock, class _Duration>
|
template <class _Clock, class _Duration>
|
||||||
@ -406,7 +409,7 @@ __lock_first(int __i, _L0& __l0, _L1& __l1, _L2& ...__l2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _L0, class _L1, class ..._L2>
|
template <class _L0, class _L1, class ..._L2>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
void
|
void
|
||||||
lock(_L0& __l0, _L1& __l1, _L2& ...__l2)
|
lock(_L0& __l0, _L1& __l1, _L2& ...__l2)
|
||||||
{
|
{
|
||||||
@ -429,8 +432,9 @@ template<class _Callable>
|
|||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_VARIADICS
|
#endif // _LIBCPP_HAS_NO_VARIADICS
|
||||||
|
|
||||||
struct once_flag
|
struct _LIBCPP_VISIBLE once_flag
|
||||||
{
|
{
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
// constexpr
|
// constexpr
|
||||||
once_flag() {}
|
once_flag() {}
|
||||||
|
|
||||||
@ -457,11 +461,14 @@ class __call_once_param
|
|||||||
_F __f_;
|
_F __f_;
|
||||||
public:
|
public:
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
explicit __call_once_param(_F&& __f) : __f_(_STD::move(__f)) {}
|
explicit __call_once_param(_F&& __f) : __f_(_STD::move(__f)) {}
|
||||||
#else
|
#else
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
explicit __call_once_param(const _F& __f) : __f_(__f) {}
|
explicit __call_once_param(const _F& __f) : __f_(__f) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
void operator()()
|
void operator()()
|
||||||
{
|
{
|
||||||
__f_();
|
__f_();
|
||||||
|
@ -81,7 +81,7 @@ public:
|
|||||||
|
|
||||||
void __throw_bad_alloc(); // not in C++ spec
|
void __throw_bad_alloc(); // not in C++ spec
|
||||||
|
|
||||||
struct nothrow_t {};
|
struct _LIBCPP_VISIBLE nothrow_t {};
|
||||||
extern _LIBCPP_VISIBLE const nothrow_t nothrow;
|
extern _LIBCPP_VISIBLE const nothrow_t nothrow;
|
||||||
typedef void (*new_handler)();
|
typedef void (*new_handler)();
|
||||||
_LIBCPP_VISIBLE new_handler set_new_handler(new_handler) throw();
|
_LIBCPP_VISIBLE new_handler set_new_handler(new_handler) throw();
|
||||||
|
@ -138,7 +138,7 @@ template <class charT, class traits, class T>
|
|||||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||||
|
|
||||||
template <class _CharT, class _Traits>
|
template <class _CharT, class _Traits>
|
||||||
class basic_ostream
|
class _LIBCPP_VISIBLE basic_ostream
|
||||||
: virtual public basic_ios<_CharT, _Traits>
|
: virtual public basic_ios<_CharT, _Traits>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -203,7 +203,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <class _CharT, class _Traits>
|
template <class _CharT, class _Traits>
|
||||||
class basic_ostream<_CharT, _Traits>::sentry
|
class _LIBCPP_VISIBLE basic_ostream<_CharT, _Traits>::sentry
|
||||||
{
|
{
|
||||||
bool __ok_;
|
bool __ok_;
|
||||||
basic_ostream<_CharT, _Traits>& __os_;
|
basic_ostream<_CharT, _Traits>& __os_;
|
||||||
|
@ -167,7 +167,7 @@ bool
|
|||||||
operator< (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y);
|
operator< (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y);
|
||||||
|
|
||||||
template <class _Tp, class _Container = deque<_Tp> >
|
template <class _Tp, class _Container = deque<_Tp> >
|
||||||
class queue
|
class _LIBCPP_VISIBLE queue
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef _Container container_type;
|
typedef _Container container_type;
|
||||||
@ -180,39 +180,49 @@ protected:
|
|||||||
container_type c;
|
container_type c;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue() : c() {}
|
queue() : c() {}
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
explicit queue(const container_type& __c) : c(__c) {}
|
explicit queue(const container_type& __c) : c(__c) {}
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
explicit queue(container_type&& __c) : c(_STD::move(__c)) {}
|
explicit queue(container_type&& __c) : c(_STD::move(__c)) {}
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue(queue&& __q) : c(_STD::move(__q.c)) {}
|
queue(queue&& __q) : c(_STD::move(__q.c)) {}
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
explicit queue(const _Alloc& __a,
|
explicit queue(const _Alloc& __a,
|
||||||
typename enable_if<uses_allocator<container_type,
|
typename enable_if<uses_allocator<container_type,
|
||||||
_Alloc>::value>::type* = 0)
|
_Alloc>::value>::type* = 0)
|
||||||
: c(__a) {}
|
: c(__a) {}
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue(const queue& __q, const _Alloc& __a,
|
queue(const queue& __q, const _Alloc& __a,
|
||||||
typename enable_if<uses_allocator<container_type,
|
typename enable_if<uses_allocator<container_type,
|
||||||
_Alloc>::value>::type* = 0)
|
_Alloc>::value>::type* = 0)
|
||||||
: c(__q.c, __a) {}
|
: c(__q.c, __a) {}
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue(const container_type& __c, const _Alloc& __a,
|
queue(const container_type& __c, const _Alloc& __a,
|
||||||
typename enable_if<uses_allocator<container_type,
|
typename enable_if<uses_allocator<container_type,
|
||||||
_Alloc>::value>::type* = 0)
|
_Alloc>::value>::type* = 0)
|
||||||
: c(__c, __a) {}
|
: c(__c, __a) {}
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue(container_type&& __c, const _Alloc& __a,
|
queue(container_type&& __c, const _Alloc& __a,
|
||||||
typename enable_if<uses_allocator<container_type,
|
typename enable_if<uses_allocator<container_type,
|
||||||
_Alloc>::value>::type* = 0)
|
_Alloc>::value>::type* = 0)
|
||||||
: c(_STD::move(__c), __a) {}
|
: c(_STD::move(__c), __a) {}
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue(queue&& __q, const _Alloc& __a,
|
queue(queue&& __q, const _Alloc& __a,
|
||||||
typename enable_if<uses_allocator<container_type,
|
typename enable_if<uses_allocator<container_type,
|
||||||
_Alloc>::value>::type* = 0)
|
_Alloc>::value>::type* = 0)
|
||||||
: c(_STD::move(__q.c), __a) {}
|
: c(_STD::move(__q.c), __a) {}
|
||||||
|
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue& operator=(queue&& __q)
|
queue& operator=(queue&& __q)
|
||||||
{
|
{
|
||||||
c = _STD::move(__q.c);
|
c = _STD::move(__q.c);
|
||||||
@ -220,25 +230,36 @@ public:
|
|||||||
}
|
}
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
bool empty() const {return c.empty();}
|
bool empty() const {return c.empty();}
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
size_type size() const {return c.size();}
|
size_type size() const {return c.size();}
|
||||||
|
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
reference front() {return c.front();}
|
reference front() {return c.front();}
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
const_reference front() const {return c.front();}
|
const_reference front() const {return c.front();}
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
reference back() {return c.back();}
|
reference back() {return c.back();}
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
const_reference back() const {return c.back();}
|
const_reference back() const {return c.back();}
|
||||||
|
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
void push(const value_type& __v) {c.push_back(__v);}
|
void push(const value_type& __v) {c.push_back(__v);}
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
void push(value_type&& __v) {c.push_back(_STD::move(__v));}
|
void push(value_type&& __v) {c.push_back(_STD::move(__v));}
|
||||||
#ifndef _LIBCPP_HAS_NO_VARIADICS
|
#ifndef _LIBCPP_HAS_NO_VARIADICS
|
||||||
template <class... _Args>
|
template <class... _Args>
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
void emplace(_Args&&... __args)
|
void emplace(_Args&&... __args)
|
||||||
{c.emplace_back(_STD::forward<_Args>(__args)...);}
|
{c.emplace_back(_STD::forward<_Args>(__args)...);}
|
||||||
#endif // _LIBCPP_HAS_NO_VARIADICS
|
#endif // _LIBCPP_HAS_NO_VARIADICS
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
void pop() {c.pop_front();}
|
void pop() {c.pop_front();}
|
||||||
|
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
void swap(queue& __q)
|
void swap(queue& __q)
|
||||||
{
|
{
|
||||||
using _STD::swap;
|
using _STD::swap;
|
||||||
@ -247,17 +268,19 @@ public:
|
|||||||
|
|
||||||
template <class _T1, class _C1>
|
template <class _T1, class _C1>
|
||||||
friend
|
friend
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
bool
|
bool
|
||||||
operator==(const queue<_T1, _C1>& __x,const queue<_T1, _C1>& __y);
|
operator==(const queue<_T1, _C1>& __x,const queue<_T1, _C1>& __y);
|
||||||
|
|
||||||
template <class _T1, class _C1>
|
template <class _T1, class _C1>
|
||||||
friend
|
friend
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
bool
|
bool
|
||||||
operator< (const queue<_T1, _C1>& __x,const queue<_T1, _C1>& __y);
|
operator< (const queue<_T1, _C1>& __x,const queue<_T1, _C1>& __y);
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
bool
|
bool
|
||||||
operator==(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
operator==(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
||||||
{
|
{
|
||||||
@ -265,7 +288,7 @@ operator==(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
bool
|
bool
|
||||||
operator< (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
operator< (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
||||||
{
|
{
|
||||||
@ -273,7 +296,7 @@ operator< (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
bool
|
bool
|
||||||
operator!=(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
operator!=(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
||||||
{
|
{
|
||||||
@ -281,7 +304,7 @@ operator!=(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
bool
|
bool
|
||||||
operator> (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
operator> (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
||||||
{
|
{
|
||||||
@ -289,7 +312,7 @@ operator> (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
bool
|
bool
|
||||||
operator>=(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
operator>=(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
||||||
{
|
{
|
||||||
@ -297,7 +320,7 @@ operator>=(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
bool
|
bool
|
||||||
operator<=(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
operator<=(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
||||||
{
|
{
|
||||||
@ -305,7 +328,7 @@ operator<=(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
void
|
void
|
||||||
swap(queue<_Tp, _Container>& __x, queue<_Tp, _Container>& __y)
|
swap(queue<_Tp, _Container>& __x, queue<_Tp, _Container>& __y)
|
||||||
{
|
{
|
||||||
@ -313,14 +336,14 @@ swap(queue<_Tp, _Container>& __x, queue<_Tp, _Container>& __y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Alloc>
|
template <class _Tp, class _Container, class _Alloc>
|
||||||
struct uses_allocator<queue<_Tp, _Container>, _Alloc>
|
struct _LIBCPP_VISIBLE uses_allocator<queue<_Tp, _Container>, _Alloc>
|
||||||
: public uses_allocator<_Container, _Alloc>
|
: public uses_allocator<_Container, _Alloc>
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class _Tp, class _Container = vector<_Tp>,
|
template <class _Tp, class _Container = vector<_Tp>,
|
||||||
class _Compare = less<typename _Container::value_type> >
|
class _Compare = less<typename _Container::value_type> >
|
||||||
class priority_queue
|
class _LIBCPP_VISIBLE priority_queue
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef _Container container_type;
|
typedef _Container container_type;
|
||||||
@ -335,6 +358,7 @@ protected:
|
|||||||
value_compare comp;
|
value_compare comp;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
explicit priority_queue(const value_compare& __comp = value_compare())
|
explicit priority_queue(const value_compare& __comp = value_compare())
|
||||||
: c(), comp(__comp) {}
|
: c(), comp(__comp) {}
|
||||||
priority_queue(const value_compare& __comp, const container_type& __c);
|
priority_queue(const value_compare& __comp, const container_type& __c);
|
||||||
@ -383,8 +407,11 @@ public:
|
|||||||
_Alloc>::value>::type* = 0);
|
_Alloc>::value>::type* = 0);
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
bool empty() const {return c.empty();}
|
bool empty() const {return c.empty();}
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
size_type size() const {return c.size();}
|
size_type size() const {return c.size();}
|
||||||
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
const_reference top() const {return c.front();}
|
const_reference top() const {return c.front();}
|
||||||
|
|
||||||
void push(const value_type& __v);
|
void push(const value_type& __v);
|
||||||
@ -400,7 +427,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const _Compare& __comp,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const _Compare& __comp,
|
||||||
const container_type& __c)
|
const container_type& __c)
|
||||||
: c(__c),
|
: c(__c),
|
||||||
@ -412,7 +439,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(const _Compare& __comp
|
|||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
||||||
container_type&& __c)
|
container_type&& __c)
|
||||||
: c(_STD::move(__c)),
|
: c(_STD::move(__c)),
|
||||||
@ -425,7 +452,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& _
|
|||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
template <class _InputIter>
|
template <class _InputIter>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(_InputIter __f, _InputIter __l,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp)
|
const value_compare& __comp)
|
||||||
: c(__f, __l),
|
: c(__f, __l),
|
||||||
@ -436,7 +463,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(_InputIter __f, _Input
|
|||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
template <class _InputIter>
|
template <class _InputIter>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(_InputIter __f, _InputIter __l,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp,
|
const value_compare& __comp,
|
||||||
const container_type& __c)
|
const container_type& __c)
|
||||||
@ -451,7 +478,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(_InputIter __f, _Input
|
|||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
template <class _InputIter>
|
template <class _InputIter>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(_InputIter __f, _InputIter __l,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp,
|
const value_compare& __comp,
|
||||||
container_type&& __c)
|
container_type&& __c)
|
||||||
@ -463,7 +490,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(_InputIter __f, _Input
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(priority_queue&& __q)
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(priority_queue&& __q)
|
||||||
: c(_STD::move(__q.c)),
|
: c(_STD::move(__q.c)),
|
||||||
comp(_STD::move(__q.comp))
|
comp(_STD::move(__q.comp))
|
||||||
@ -483,7 +510,7 @@ priority_queue<_Tp, _Container, _Compare>::operator=(priority_queue&& __q)
|
|||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const _Alloc& __a,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const _Alloc& __a,
|
||||||
typename enable_if<uses_allocator<container_type,
|
typename enable_if<uses_allocator<container_type,
|
||||||
_Alloc>::value>::type*)
|
_Alloc>::value>::type*)
|
||||||
@ -493,7 +520,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(const _Alloc& __a,
|
|||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
typename enable_if<uses_allocator<container_type,
|
typename enable_if<uses_allocator<container_type,
|
||||||
@ -505,7 +532,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& _
|
|||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
||||||
const container_type& __c,
|
const container_type& __c,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
@ -519,7 +546,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& _
|
|||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const priority_queue& __q,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const priority_queue& __q,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
typename enable_if<uses_allocator<container_type,
|
typename enable_if<uses_allocator<container_type,
|
||||||
@ -534,7 +561,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(const priority_queue&
|
|||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
||||||
container_type&& __c,
|
container_type&& __c,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
@ -548,7 +575,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& _
|
|||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(priority_queue&& __q,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(priority_queue&& __q,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
typename enable_if<uses_allocator<container_type,
|
typename enable_if<uses_allocator<container_type,
|
||||||
@ -562,7 +589,7 @@ priority_queue<_Tp, _Container, _Compare>::priority_queue(priority_queue&& __q,
|
|||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
void
|
void
|
||||||
priority_queue<_Tp, _Container, _Compare>::push(const value_type& __v)
|
priority_queue<_Tp, _Container, _Compare>::push(const value_type& __v)
|
||||||
{
|
{
|
||||||
@ -573,7 +600,7 @@ priority_queue<_Tp, _Container, _Compare>::push(const value_type& __v)
|
|||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
void
|
void
|
||||||
priority_queue<_Tp, _Container, _Compare>::push(value_type&& __v)
|
priority_queue<_Tp, _Container, _Compare>::push(value_type&& __v)
|
||||||
{
|
{
|
||||||
@ -585,7 +612,7 @@ priority_queue<_Tp, _Container, _Compare>::push(value_type&& __v)
|
|||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
template <class... _Args>
|
template <class... _Args>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
void
|
void
|
||||||
priority_queue<_Tp, _Container, _Compare>::emplace(_Args&&... __args)
|
priority_queue<_Tp, _Container, _Compare>::emplace(_Args&&... __args)
|
||||||
{
|
{
|
||||||
@ -597,7 +624,7 @@ priority_queue<_Tp, _Container, _Compare>::emplace(_Args&&... __args)
|
|||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
void
|
void
|
||||||
priority_queue<_Tp, _Container, _Compare>::pop()
|
priority_queue<_Tp, _Container, _Compare>::pop()
|
||||||
{
|
{
|
||||||
@ -606,7 +633,7 @@ priority_queue<_Tp, _Container, _Compare>::pop()
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
void
|
void
|
||||||
priority_queue<_Tp, _Container, _Compare>::swap(priority_queue& __q)
|
priority_queue<_Tp, _Container, _Compare>::swap(priority_queue& __q)
|
||||||
{
|
{
|
||||||
@ -616,7 +643,7 @@ priority_queue<_Tp, _Container, _Compare>::swap(priority_queue& __q)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
inline
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
void
|
void
|
||||||
swap(priority_queue<_Tp, _Container, _Compare>& __x,
|
swap(priority_queue<_Tp, _Container, _Compare>& __x,
|
||||||
priority_queue<_Tp, _Container, _Compare>& __y)
|
priority_queue<_Tp, _Container, _Compare>& __y)
|
||||||
@ -625,7 +652,7 @@ swap(priority_queue<_Tp, _Container, _Compare>& __x,
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare, class _Alloc>
|
template <class _Tp, class _Container, class _Compare, class _Alloc>
|
||||||
struct uses_allocator<priority_queue<_Tp, _Container, _Compare>, _Alloc>
|
struct _LIBCPP_VISIBLE uses_allocator<priority_queue<_Tp, _Container, _Compare>, _Alloc>
|
||||||
: public uses_allocator<_Container, _Alloc>
|
: public uses_allocator<_Container, _Alloc>
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
765
include/random
765
include/random
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user