diff options
Diffstat (limited to 'src/range/slice.hpp')
-rw-r--r-- | src/range/slice.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/range/slice.hpp b/src/range/slice.hpp index f645595..da52e5f 100644 --- a/src/range/slice.hpp +++ b/src/range/slice.hpp @@ -1,5 +1,4 @@ -#ifndef TMWA_GENERIC_SLICE_HPP -#define TMWA_GENERIC_SLICE_HPP +#pragma once // slice.hpp - a borrowed array // // Copyright © 2011-2014 Ben Longbons <b.r.longbons@gmail.com> @@ -19,14 +18,16 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -# include "../sanity.hpp" +#include "fwd.hpp" -# include <cstddef> +#include <cstddef> -# include <type_traits> +#include <type_traits> +#include <vector> -# include <vector> +namespace tmwa +{ template<class T> class Slice { @@ -68,7 +69,6 @@ public: Slice pslice(size_t b, size_t e) const; Slice islice(iterator b, iterator e) const; }; +} // namespace tmwa -# include "slice.tcc" - -#endif // TMWA_GENERIC_SLICE_HPP +#include "slice.tcc" |