diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-12-21 15:08:48 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2022-12-21 15:49:53 +0000 |
commit | 40add664cca86e6c1591b9503b6ce7f568874388 (patch) | |
tree | 393824345d0d324b7a578ba1b25739bf4499158f /eval/src | |
parent | 762d9bb079b201a4fc72c67853909a8d5a3f4f15 (diff) |
Change from typedef to using in misc C++ code.
Diffstat (limited to 'eval/src')
-rw-r--r-- | eval/src/vespa/eval/eval/call_nodes.h | 4 | ||||
-rw-r--r-- | eval/src/vespa/eval/eval/interpreted_function.h | 2 | ||||
-rw-r--r-- | eval/src/vespa/eval/eval/llvm/compiled_function.h | 2 | ||||
-rw-r--r-- | eval/src/vespa/eval/eval/operator_nodes.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/eval/src/vespa/eval/eval/call_nodes.h b/eval/src/vespa/eval/eval/call_nodes.h index 975f52e40a1..6ce0d720c8d 100644 --- a/eval/src/vespa/eval/eval/call_nodes.h +++ b/eval/src/vespa/eval/eval/call_nodes.h @@ -61,7 +61,7 @@ public: return str; } }; -typedef std::unique_ptr<Call> Call_UP; +using Call_UP = std::unique_ptr<Call>; //----------------------------------------------------------------------------- @@ -99,7 +99,7 @@ public: template <typename T> struct CallHelper : Call { - typedef CallHelper<T> Helper; + using Helper = CallHelper<T>; CallHelper(const vespalib::string &name_in, size_t num_params_in) : Call(name_in, num_params_in) {} void accept(NodeVisitor &visitor) const override; diff --git a/eval/src/vespa/eval/eval/interpreted_function.h b/eval/src/vespa/eval/eval/interpreted_function.h index 57f2dd93e03..4528ccb79aa 100644 --- a/eval/src/vespa/eval/eval/interpreted_function.h +++ b/eval/src/vespa/eval/eval/interpreted_function.h @@ -105,7 +105,7 @@ private: const ValueBuilderFactory &_factory; public: - typedef std::unique_ptr<InterpretedFunction> UP; + using UP = std::unique_ptr<InterpretedFunction>; // for testing; use with care; the tensor function must be kept alive InterpretedFunction(const ValueBuilderFactory &factory, const TensorFunction &function, CTFMetaData *meta); InterpretedFunction(const ValueBuilderFactory &factory, const TensorFunction &function) diff --git a/eval/src/vespa/eval/eval/llvm/compiled_function.h b/eval/src/vespa/eval/eval/llvm/compiled_function.h index bf522f5029b..f7ca54dfa23 100644 --- a/eval/src/vespa/eval/eval/llvm/compiled_function.h +++ b/eval/src/vespa/eval/eval/llvm/compiled_function.h @@ -37,7 +37,7 @@ private: PassParams _pass_params; public: - typedef std::unique_ptr<CompiledFunction> UP; + using UP = std::unique_ptr<CompiledFunction>; CompiledFunction(const nodes::Node &root_in, size_t num_params_in, PassParams pass_params_in, const gbdt::Optimize::Chain &forest_optimizers); CompiledFunction(const Function &function_in, PassParams pass_params_in, const gbdt::Optimize::Chain &forest_optimizers) diff --git a/eval/src/vespa/eval/eval/operator_nodes.h b/eval/src/vespa/eval/eval/operator_nodes.h index a47e724a6eb..827bf1da1b4 100644 --- a/eval/src/vespa/eval/eval/operator_nodes.h +++ b/eval/src/vespa/eval/eval/operator_nodes.h @@ -76,7 +76,7 @@ public: return str; } }; -typedef std::unique_ptr<Operator> Operator_UP; +using Operator_UP = std::unique_ptr<Operator>; //----------------------------------------------------------------------------- |