diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-12 16:34:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-12 16:34:29 +0200 |
commit | 4fd0df2573341824eea5edfaf45be33997ce56ce (patch) | |
tree | 71338eb0045c9eb734178cafb2fabd128d4076da /bpkg/utility | |
parent | 2c58968b94f348911372e8afb47626d33825757b (diff) |
<types>/<utility> scheme cleanup
Diffstat (limited to 'bpkg/utility')
-rw-r--r-- | bpkg/utility | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/bpkg/utility b/bpkg/utility index 9aa2dba..3b2a11f 100644 --- a/bpkg/utility +++ b/bpkg/utility @@ -5,9 +5,14 @@ #ifndef BPKG_UTILITY #define BPKG_UTILITY -#include <memory> // make_shared() -#include <cassert> -#include <utility> // move() +#include <memory> // make_shared() +#include <string> // to_string() +#include <utility> // move(), forward(), declval(), make_pair() +#include <cassert> // assert() +#include <iterator> // make_move_iterator() + +#include <butl/utility> // reverse_iterate() + #include <exception> // uncaught_exception() #include <butl/filesystem> @@ -17,8 +22,17 @@ namespace bpkg { using std::move; + using std::forward; + using std::declval; + + using std::make_pair; using std::make_shared; - using std::to_string; // To complement bpkg::to_string(). + using std::make_move_iterator; + using std::to_string; + + // <butl/utility> + // + using butl::reverse_iterate; // Y/N prompt. The def argument, if specified, should be either 'y' // or 'no'. It is used as the default answer, in case the user just |