diff options
Diffstat (limited to 'includes/movecopy.hpp')
-rw-r--r-- | includes/movecopy.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/includes/movecopy.hpp b/includes/movecopy.hpp new file mode 100644 index 0000000..b1a115b --- /dev/null +++ b/includes/movecopy.hpp @@ -0,0 +1,29 @@ +//-*- mode: c++; indent-tabs-mode: t; coding: utf-8; show-trailing-whitespace: t -*- + +// file movecopy.hpp + +#ifndef _MOVECOPY_HPP +#define _MOVECOPY_HPP + +#include <iostream> +#include <string> +#include <cstdlib> +#include <cstdint> +#include <vector> + +// Functions. + +namespace movecopy { + + template <class T> size_t copy(const T &, T *, const size_t &); + template <class T> size_t move(const T [], T *, const size_t &); + template <class T> size_t move0(T *, const size_t &); + template <class T> size_t copy(const T &, std::vector<T> &, const size_t &); + template <class T> size_t move(const std::vector<T> &, std::vector<T> &, const size_t &); + template <class T> size_t move0(std::vector<T> &, const size_t &); + +} + +#endif // _MOVECOPY_HPP + +// end of file movecopy.hpp |