All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
search_obj_func_components.hpp
Go to the documentation of this file.
1 //=======================================================================
2 // Copyright (c) 2013 Piotr Wygocki
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //=======================================================================
15 #ifndef PAAL_SEARCH_OBJ_FUNC_COMPONENTS_HPP
16 #define PAAL_SEARCH_OBJ_FUNC_COMPONENTS_HPP
17 
20 #include "paal/utils/functors.hpp"
21 
22 namespace paal {
23 namespace local_search {
24 
28 struct GetMoves;
32 struct ObjFunction;
36 struct Commit;
37 
44 
50 template <typename... Args>
51 using search_components_obj_fun = typename components_obj_fun::type<Args...>;
52 
61 template <typename... Args>
62 auto make_search_components_obj_fun(Args &&... args) {
63  return components_obj_fun::make_components(std::forward<Args>(args)...);
64 }
65 
66 }
67 }
68 #endif // PAAL_SEARCH_OBJ_FUNC_COMPONENTS_HPP
typename components_obj_fun::type< Args...> search_components_obj_fun
search_componentsObjFun alias to components.
static type< special_decay_t< components >...> make_components(components &&...comps)
make function for components
Definition: components.hpp:497
This file contains set of simple useful functors or functor adapters.
auto make_search_components_obj_fun(Args &&...args)
make function for search_componentsObjFun
bool local_search(Solution &solution, SearchStrategy searchStrategy, ContinueOnSuccess succ, ContinueOnFail fail, components...comps)
detail