empty_node_checker.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2014-2014
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/intrusive for documentation.
  10. //
  11. /////////////////////////////////////////////////////////////////////////////
  12. #ifndef BOOST_INTRUSIVE_DETAIL_EMPTY_NODE_CHECKER_HPP
  13. #define BOOST_INTRUSIVE_DETAIL_EMPTY_NODE_CHECKER_HPP
  14. #ifndef BOOST_CONFIG_HPP
  15. # include <boost/config.hpp>
  16. #endif
  17. #if defined(BOOST_HAS_PRAGMA_ONCE)
  18. # pragma once
  19. #endif
  20. namespace boost {
  21. namespace intrusive {
  22. namespace detail {
  23. template<class ValueTraits>
  24. struct empty_node_checker
  25. {
  26. typedef ValueTraits value_traits;
  27. typedef typename value_traits::node_traits node_traits;
  28. typedef typename node_traits::const_node_ptr const_node_ptr;
  29. struct return_type {};
  30. void operator () (const const_node_ptr&, const return_type&, const return_type&, return_type&) {}
  31. };
  32. } //namespace detail{
  33. } //namespace intrusive{
  34. } //namespace boost{
  35. #endif //BOOST_INTRUSIVE_DETAIL_EMPTY_NODE_CHECKER_HPP