diff options
author | Angelo Rossi <angelo.rossi.homelab@gmail.com> | 2023-06-21 12:04:16 +0000 |
---|---|---|
committer | Angelo Rossi <angelo.rossi.homelab@gmail.com> | 2023-06-21 12:04:16 +0000 |
commit | b18347ffc9db9641e215995edea1c04c363b2bdf (patch) | |
tree | f3908dc911399f1a21e17d950355ee56dc0919ee /includes/movecopy.hpp |
Initial commit.
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 |