]>
Dogcows Code - chaz/yoink/blob - src/cml/fixed.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 *-----------------------------------------------------------------------*/
19 /** This is a selector for fixed 1D and 2D arrays.
21 * The fixed<> struct is used only to select a 1D or 2D array as the base
22 * class of a vector or matrix. The rebind<> template is used by
23 * quaternion<> to select its vector length in a generic way.
28 template<int Dim1
= -1, int Dim2
= -1> struct fixed
{
30 /** Rebind to a 1D type.
32 * This is used by quaternion<>.
34 template<int D
> struct rebind
{ typedef fixed
<D
> other
; };
41 // -------------------------------------------------------------------------
This page took 0.038051 seconds and 5 git commands to generate.