From a10a822889a1e1638f31610753abe04bc99c21c8 Mon Sep 17 00:00:00 2001 From: liuruilong Date: Tue, 5 Jun 2018 14:39:35 +0800 Subject: [PATCH] format files --- src/framework/dim.h | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/framework/dim.h b/src/framework/dim.h index 4d30883193..b84f695493 100644 --- a/src/framework/dim.h +++ b/src/framework/dim.h @@ -213,27 +213,21 @@ int64_t &Dim::operator[](int i) { } // Dynamic access to constant Dim -inline int64_t Dim<0>::operator[](int i) const { - return indexer(*this, i); -} +inline int64_t Dim<0>::operator[](int i) const { return indexer(*this, i); } // Dynamic access to mutable Dim -inline int64_t &Dim<0>::operator[](int i) { - return indexer(*this, i); -} +inline int64_t &Dim<0>::operator[](int i) { return indexer(*this, i); } // Dynamic access to constant Dim // without std::enable_if will try to instantiate this on get<0>(d) template -typename std::enable_if<(l > 0), int64_t>::type get(const Dim &d, - int i) { +typename std::enable_if<(l > 0), int64_t>::type get(const Dim &d, int i) { return d[i]; } // Dynamic access to mutable Dim template -typename std::enable_if<(l > 0), int64_t &>::type get(Dim &d, - int i) { +typename std::enable_if<(l > 0), int64_t &>::type get(Dim &d, int i) { return d[i]; } @@ -351,8 +345,7 @@ Dim normalize_strides(const Dim &size, const Dim &stride) { ///\cond HIDDEN template <> -inline Dim<0> normalize_strides(const Dim<0> &size, - const Dim<0> &stride) { +inline Dim<0> normalize_strides(const Dim<0> &size, const Dim<0> &stride) { return Dim<0>(); } -- GitLab