41 lines
912 B
C++
41 lines
912 B
C++
/**
|
|
* @file include/ActivMiddleware/CxxYZ/list.h
|
|
*
|
|
* @brief Header file for easing C++11 (or later) <list> features across compilers.
|
|
*/
|
|
|
|
#if (!defined ACTIV_CXXYX_LIST_H)
|
|
#define ACTIV_CXXYX_LIST_H
|
|
|
|
#include "ActivMiddleware/CxxYZ/Container.h"
|
|
|
|
// std::list::size in GNU stdlib when using pre-c++11 ABI is linear in complexity.
|
|
|
|
#if (defined ACTIV_CXX11_USE_STD_CONTAINERS)
|
|
#if (!defined ACTIV_BOOST_GNU_STDLIB) || (defined _GLIBCXX_USE_CXX11_ABI) && (_GLIBCXX_USE_CXX11_ABI == 1)
|
|
#include <list>
|
|
#define ACTIV_CXXYZ_LIST_NAMESPACE std
|
|
#endif
|
|
#endif
|
|
|
|
#if (!defined ACTIV_CXXYZ_LIST_NAMESPACE)
|
|
#include ACTIV_BOOST_INCLUDE(container/list.hpp)
|
|
#define ACTIV_CXXYZ_LIST_NAMESPACE Boost::container
|
|
#endif
|
|
|
|
//! Activ namespace.
|
|
namespace Activ
|
|
{
|
|
|
|
//! CxxYZ namespace.
|
|
namespace CxxYZ
|
|
{
|
|
|
|
using ACTIV_CXXYZ_LIST_NAMESPACE::list;
|
|
|
|
} // namespace CxxYZ
|
|
|
|
} // namespace Activ
|
|
|
|
#endif // (!defined ACTIV_CXXYX_LIST_H)
|