accessor.hpp

来自「一个C++写的KdTree容器模板库」· HPP 代码 · 共 42 行

HPP
42
字号
/** \file * Defines the interface for the Accessor class. * * \author Martin F. Krafft <libkdtree@pobox.madduck.net> */#ifndef INCLUDE_KDTREE_ACCESSOR_HPP#define INCLUDE_KDTREE_ACCESSOR_HPP#include <cstddef>namespace KDTree{   template <typename _Val>      struct _Bracket_accessor      {         typedef typename _Val::value_type result_type;         result_type            operator()(_Val const& V, size_t const N) const throw ()            {               return V[N];            }      };} // namespace KDTree#endif // include guard/* COPYRIGHT -- * * This file is part of libkdtree++, a C++ template KD-Tree sorting container. * libkdtree++ is (c) 2004-2007 Martin F. Krafft <libkdtree@pobox.madduck.net> * and Sylvain Bougerel <sylvain.bougerel.devel@gmail.com> distributed under the * terms of the Artistic License 2.0. See the ./COPYING file in the source tree * root for more information. * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES * OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */

⌨️ 快捷键说明

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