aboutsummaryrefslogtreecommitdiff
path: root/butl/filesystem.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-07-26 22:36:33 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-07-28 19:44:42 +0300
commit6597c9b777b608a96974b4a7a8c15234b05ffdd8 (patch)
tree59f588c71ffdf7069e5c765a8ddf5f93610e7e4f /butl/filesystem.ixx
parent2ddc00326a9d6b647e7213212d0241a60be68256 (diff)
Cleanup DLL export/import
Diffstat (limited to 'butl/filesystem.ixx')
-rw-r--r--butl/filesystem.ixx24
1 files changed, 18 insertions, 6 deletions
diff --git a/butl/filesystem.ixx b/butl/filesystem.ixx
index 8e81b59..af1125e 100644
--- a/butl/filesystem.ixx
+++ b/butl/filesystem.ixx
@@ -85,6 +85,12 @@ namespace butl
// dir_entry
//
inline entry_type dir_entry::
+ ltype () const
+ {
+ return t_ != entry_type::unknown ? t_ : (t_ = type (false));
+ }
+
+ inline entry_type dir_entry::
type () const
{
entry_type t (ltype ());
@@ -93,12 +99,6 @@ namespace butl
: lt_ != entry_type::unknown ? lt_ : (lt_ = type (true));
}
- inline entry_type dir_entry::
- ltype () const
- {
- return t_ != entry_type::unknown ? t_ : (t_ = type (false));
- }
-
// dir_iterator
//
inline dir_iterator::
@@ -123,4 +123,16 @@ namespace butl
{
return !(x == y);
}
+
+ inline dir_iterator
+ begin (dir_iterator& i)
+ {
+ return std::move (i);
+ }
+
+ inline dir_iterator
+ end (const dir_iterator&)
+ {
+ return dir_iterator ();
+ }
}