blob: b1a115bb812029773626ff8d893eb4422c2c2904 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|