]> Dogcows Code - chaz/yoink/blob - src/moof/cml/external.h
bugfix: win32 packaging script temp directories
[chaz/yoink] / src / moof / cml / external.h
1 /* -*- C++ -*- ------------------------------------------------------------
2
3 Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
4
5 The Configurable Math Library (CML) is distributed under the terms of the
6 Boost Software License, v1.0 (see cml/LICENSE for details).
7
8 *-----------------------------------------------------------------------*/
9 /** @file
10 * @brief
11 */
12
13 #ifndef external_h
14 #define external_h
15
16 namespace cml {
17
18 /** This is a selector for external 1D and 2D arrays.
19 *
20 * The external<> struct is used only to select a 1D or 2D array as the
21 * base class of a vector or matrix. The rebind<> template is used by
22 * quaternion<> to select its vector length in a generic way.
23 *
24 * @sa fixed
25 * @sa dynamic
26 */
27 template<int Dim1 = -1, int Dim2 = -1> struct external {
28
29 /** Rebind to a 1D type.
30 *
31 * This is used by quaternion<>.
32 */
33 template<int D> struct rebind { typedef external<D> other; };
34 };
35
36 } // namespace cml
37
38 #endif
39
40 // -------------------------------------------------------------------------
41 // vim:ft=cpp
This page took 0.032618 seconds and 4 git commands to generate.