lambda.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Boost.Bimap
  2. //
  3. // Copyright (c) 2006-2007 Matias Capeletto
  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. /// \file support/lambda.hpp
  9. /// \brief Placeholders definition to help in bimap modify function
  10. #ifndef BOOST_BIMAP_SUPPORT_LAMBDA_HPP
  11. #define BOOST_BIMAP_SUPPORT_LAMBDA_HPP
  12. #if defined(_MSC_VER)
  13. #pragma once
  14. #endif
  15. #include <boost/config.hpp>
  16. #include <boost/lambda/lambda.hpp>
  17. namespace boost {
  18. namespace bimaps {
  19. namespace {
  20. /*
  21. boost::lambda::placeholder1_type & _first = boost::lambda::_1;
  22. boost::lambda::placeholder2_type & _second = boost::lambda::_2;
  23. boost::lambda::placeholder1_type & _left = boost::lambda::_1;
  24. boost::lambda::placeholder2_type & _right = boost::lambda::_2;
  25. */
  26. boost::lambda::placeholder1_type & _key = boost::lambda::_1;
  27. boost::lambda::placeholder1_type & _data = boost::lambda::_1;
  28. }
  29. } // namespace bimaps
  30. } // namespace boost
  31. #endif // BOOST_BIMAP_SUPPORT_LAMBDA_HPP