parameter.hpp

来自「矩阵运算源码最新版本」· HPP 代码 · 共 36 行

HPP
36 行
字号
// Software License for MTL// // Copyright (c) 2007 The Trustees of Indiana University. All rights reserved.// Authors: Peter Gottschling and Andrew Lumsdaine// // This file is part of the Matrix Template Library// // See also license.mtl.txt in the distribution.#ifndef MTL_VECTOR_PARAMETERS_INCLUDE#define MTL_VECTOR_PARAMETERS_INCLUDE#include <boost/mpl/bool.hpp>#include <boost/numeric/mtl/utility/tag.hpp>#include <boost/numeric/mtl/vector/dimension.hpp>namespace mtl { namespace vector {// This type exist only for bundling template parameters (to reduce typing)template <typename Orientation= col_major, 	  typename Dimension= non_fixed::dimension,	  bool OnStack= false,	  bool RValue= false>struct parameters {    typedef Orientation orientation;    typedef Dimension   dimension;    static bool const   on_stack= OnStack;    static bool const   is_rvalue= RValue;  // to enable shallow copy};}} // namespace mtl::vector#endif // MTL_VECTOR_PARAMETERS_INCLUDE

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?