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.

16 lines
334 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. template<typename F, typename ... Args>
  8. auto bind_front(F&& func, Args&&... arg_parent)
  9. {
  10. return [=](auto&&... argv){
  11. return func(arg_parent..., argv...);
  12. };
  13. }
  14. }