General Purpose library for Freestanding C++ and POSIX systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
370 B

  1. #pragma once
  2. #include <gp/algorithms/move.hpp>
  3. #include <gp/algorithms/cvref.hpp>
  4. #include <gp/algorithms/reference.hpp>
  5. #include <type_traits>
  6. namespace gp {
  7. // TODO: this goes into functional
  8. template<typename F, typename ... Args>
  9. auto bind_front(F&& func, Args&&... arg_parent)
  10. {
  11. return [=](auto&&... argv){
  12. return func(arg_parent..., argv...);
  13. };
  14. }
  15. }