[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master cd6c9ea 3/8: Favor the One True type-paramete
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master cd6c9ea 3/8: Favor the One True type-parameter-key |
Date: |
Sat, 20 Mar 2021 09:55:29 -0400 (EDT) |
branch: master
commit cd6c9ea33d6835a2020d4f2af35feefcff2c948c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Favor the One True type-parameter-key
---
tools/pete-2.1.1/et_vector.hpp | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tools/pete-2.1.1/et_vector.hpp b/tools/pete-2.1.1/et_vector.hpp
index 5916847..75123c5 100644
--- a/tools/pete-2.1.1/et_vector.hpp
+++ b/tools/pete-2.1.1/et_vector.hpp
@@ -82,7 +82,7 @@
/// Create vector-reference leaves.
-template<class T>
+template<typename T>
struct CreateLeaf<std::vector<T>>
{
typedef Reference<std::vector<T>> Leaf_t;
@@ -102,7 +102,7 @@ class SizeLeaf
int length_;
};
-template<class T>
+template<typename T>
struct LeafFunctor<Scalar<T>, SizeLeaf>
{
typedef bool Type_t;
@@ -112,7 +112,7 @@ struct LeafFunctor<Scalar<T>, SizeLeaf>
}
};
-template<class T>
+template<typename T>
struct LeafFunctor<std::vector<T>, SizeLeaf>
{
typedef bool Type_t;
@@ -122,7 +122,7 @@ struct LeafFunctor<std::vector<T>, SizeLeaf>
}
};
-template<class T>
+template<typename T>
struct LeafFunctor<std::vector<T>, EvalLeaf1>
{
typedef T Type_t;
@@ -136,7 +136,7 @@ struct LeafFunctor<std::vector<T>, EvalLeaf1>
struct LengthLeaf {};
-template<class T>
+template<typename T>
struct LeafFunctor<std::vector<T>, LengthLeaf>
{
typedef int Type_t;
@@ -144,7 +144,7 @@ struct LeafFunctor<std::vector<T>, LengthLeaf>
{return lmi::ssize(v);}
};
-template<class T>
+template<typename T>
struct LeafFunctor<T, LengthLeaf>
{
typedef int Type_t;
@@ -157,7 +157,7 @@ struct MaxCombine
PETE_EMPTY_CONSTRUCTORS(MaxCombine)
};
-template<class Op>
+template<typename Op>
struct Combine2<int, int, Op, MaxCombine>
{
typedef int Type_t;
@@ -169,7 +169,7 @@ struct Combine2<int, int, Op, MaxCombine>
/// All PETE assignment operators call evaluate().
-template<class T, class Op, class U>
+template<typename T, typename Op, typename U>
inline void evaluate(std::vector<T>& t, Op const& op, Expression<U> const& u)
{
if(!forEach(u, SizeLeaf(lmi::ssize(t)), AndCombine()))
- [lmi-commits] [lmi] master updated (1be41b7 -> 1d15a4a), Greg Chicares, 2021/03/20
- [lmi-commits] [lmi] master d5f870a 1/8: Improve documentation, Greg Chicares, 2021/03/20
- [lmi-commits] [lmi] master 4220f5e 2/8: Assume default allocator always, Greg Chicares, 2021/03/20
- [lmi-commits] [lmi] master 44b780e 7/8: Deduce Eval()'s return type, Greg Chicares, 2021/03/20
- [lmi-commits] [lmi] master de67a28 5/8: Improve an error message, Greg Chicares, 2021/03/20
- [lmi-commits] [lmi] master cd6c9ea 3/8: Favor the One True type-parameter-key,
Greg Chicares <=
- [lmi-commits] [lmi] master 4c4a0e4 4/8: Add a PETE length-of function, Greg Chicares, 2021/03/20
- [lmi-commits] [lmi] master 1d15a4a 8/8: Isolate PETE directory weirdness to a redirection header, Greg Chicares, 2021/03/20
- [lmi-commits] [lmi] master 334ac64 6/8: Add a function template to transform a PETE expression to a std::vector, Greg Chicares, 2021/03/20