Welcome to mirror list, hosted at ThFree Co, Russian Federation.

testing_utils.hpp « testing - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 67a6ddf05005895bd6d9248410aad36df73df27a (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
30
31
32
33
34
35
36
#pragma once
#include "std/vector.hpp"

template <typename T> vector<T> Vec(T x0)
{
  vector<T> v;
  v.push_back(x0);
  return v;
}

template <typename T> vector<T> Vec(T x0, T x1)
{
  vector<T> v;
  v.push_back(x0);
  v.push_back(x1);
  return v;
}

template <typename T> vector<T> Vec(T x0, T x1, T x2)
{
  vector<T> v;
  v.push_back(x0);
  v.push_back(x1);
  v.push_back(x2);
  return v;
}

template <typename T> vector<T> Vec(T x0, T x1, T x2, T x3)
{
  vector<T> v;
  v.push_back(x0);
  v.push_back(x1);
  v.push_back(x2);
  v.push_back(x3);
  return v;
}