]>
Dogcows Code - chaz/yoink/blob - src/Moof/cml/vector/vector_print.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 *-----------------------------------------------------------------------*/
13 #ifndef vector_print_h
14 #define vector_print_h
20 /** Output a vector to a std::ostream. */
21 template<typename E
, class AT
> inline std::ostream
&
22 operator<<(std::ostream
& os
, const vector
<E
,AT
>& v
)
24 for (size_t i
= 0; i
< v
.size(); ++i
) {
30 /** Output a vector expression to a std::ostream. */
31 template< class XprT
> inline std::ostream
&
32 operator<<(std::ostream
& os
, const et::VectorXpr
<XprT
>& v
)
34 for (size_t i
= 0; i
< v
.size(); ++i
) {
44 // -------------------------------------------------------------------------
This page took 0.040012 seconds and 4 git commands to generate.