X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fmoof%2Fcml%2Fexternal.h;fp=src%2Fmoof%2Fcml%2Fexternal.h;h=cc052e728446c537df5775d23cc8181f2a698715;hb=831f04d4bc19a390415ac0bbac4331c7a65509bc;hp=0000000000000000000000000000000000000000;hpb=299af4f2047e767e5d79501c26444473bda64c64;p=chaz%2Fyoink diff --git a/src/moof/cml/external.h b/src/moof/cml/external.h new file mode 100644 index 0000000..cc052e7 --- /dev/null +++ b/src/moof/cml/external.h @@ -0,0 +1,41 @@ +/* -*- C++ -*- ------------------------------------------------------------ + +Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/ + +The Configurable Math Library (CML) is distributed under the terms of the +Boost Software License, v1.0 (see cml/LICENSE for details). + + *-----------------------------------------------------------------------*/ +/** @file + * @brief + */ + +#ifndef external_h +#define external_h + +namespace cml { + +/** This is a selector for external 1D and 2D arrays. + * + * The external<> struct is used only to select a 1D or 2D array as the + * base class of a vector or matrix. The rebind<> template is used by + * quaternion<> to select its vector length in a generic way. + * + * @sa fixed + * @sa dynamic + */ +template struct external { + + /** Rebind to a 1D type. + * + * This is used by quaternion<>. + */ + template struct rebind { typedef external other; }; +}; + +} // namespace cml + +#endif + +// ------------------------------------------------------------------------- +// vim:ft=cpp