tlx
Loading...
Searching...
No Matches
is_std_pair.hpp
Go to the documentation of this file.
1/*******************************************************************************
2 * tlx/meta/is_std_pair.hpp
3 *
4 * Part of tlx - http://panthema.net/tlx
5 *
6 * Copyright (C) 2016-2017 Timo Bingmann <tb@panthema.net>
7 *
8 * All rights reserved. Published under the Boost Software License, Version 1.0
9 ******************************************************************************/
10
11#ifndef TLX_META_IS_STD_PAIR_HEADER
12#define TLX_META_IS_STD_PAIR_HEADER
13
14#include <utility>
15
16namespace tlx {
17
18//! \addtogroup tlx_meta
19//! \{
20
21//! test if is a std::pair<...>
22template <typename T>
23struct is_std_pair : public std::false_type { };
24
25template <typename S, typename T>
26struct is_std_pair<std::pair<S, T> >: public std::true_type { };
27
28//! \}
29
30} // namespace tlx
31
32#endif // !TLX_META_IS_STD_PAIR_HEADER
33
34/******************************************************************************/
STL namespace.
test if is a std::pair<...>