diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-02 19:25:22 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-02 19:25:22 +0800 |
commit | 10ce63e0225d65fcff3070f75607dedcf282ca02 (patch) | |
tree | 910ccdfc4b9a42f10fbc3358ead712dfd5241d26 /src/common.hpp | |
parent | 48dc2d149e96232a4f0546675fadf7b3f7d6eddf (diff) | |
download | mrust-10ce63e0225d65fcff3070f75607dedcf282ca02.tar.gz |
Expand - Derive PartialOrd
Diffstat (limited to 'src/common.hpp')
-rw-r--r-- | src/common.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common.hpp b/src/common.hpp index e58fc0da..27a45c32 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -43,6 +43,15 @@ template<typename T> rv.push_back( mv$(v2) ); return rv; } +template<typename T> +::std::vector<T> make_vec3(T v1, T v2, T v3) { + ::std::vector<T> rv; + rv.reserve(3); + rv.push_back( mv$(v1) ); + rv.push_back( mv$(v2) ); + rv.push_back( mv$(v3) ); + return rv; +} enum Ordering { |