flip_lazy.cpp 587 B

1234567891011121314
  1. /*=============================================================================
  2. Copyright (c) 2017 Paul Fultz II
  3. flip_lazy.cpp
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #include <boost/hof/lazy.hpp>
  8. #include <boost/hof/placeholders.hpp>
  9. #include <boost/hof/flip.hpp>
  10. int main() {
  11. auto i = (boost::hof::flip(boost::hof::_1 - boost::hof::_2) * boost::hof::_1)(3, 6);
  12. (void)i;
  13. }