]>
Dogcows Code - chaz/yoink/blob - Moof/cml/external.h
1 /* -*- C++ -*- ------------------------------------------------------------
3 Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
5 The Configurable Math Library (CML) is distributed under the terms of the
6 Boost Software License, v1.0 (see cml/LICENSE for details).
8 *-----------------------------------------------------------------------*/
18 /** This is a selector for external 1D and 2D arrays.
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.
27 template<int Dim1
= -1, int Dim2
= -1> struct external
{
29 /** Rebind to a 1D type.
31 * This is used by quaternion<>.
33 template<int D
> struct rebind
{ typedef external
<D
> other
; };
40 // -------------------------------------------------------------------------
This page took 0.033566 seconds and 4 git commands to generate.