/* The following code example is taken from the book
* "The C++ Standard Library - A Tutorial and Reference"
* by Nicolai M. Josuttis, Addison-Wesley, 1999
*
* (C) Copyright Nicolai M. Josuttis 1999.
* Permission to copy, use, modify, sell and distribute this software
* is granted provided this copyright notice appears in all copies.
* This software is provided "as is" without express or implied
* warranty, and with no claim as to its suitability for any purpose.
*/
#include <iostream>
/* PRINT_ELEMENTS()
* - prints optional C-string optcstr followed by
* - all elements of the collection coll
* - separated by spaces
*/
template <class T>
inline void PRINT_ELEMENTS (const T& coll, const char* optcstr="")
{
typename T::const_iterator pos;
std::cout << optcstr;
for (pos=coll.begin(); pos!=coll.end(); ++pos) {
std::cout << *pos << ' ';
}
std::cout << std::endl;
}
- コミュニティ
- Boostライブラリのビルド方法
- メーリングリスト
- 運営メンバ
- Boostを使用しているプロジェクト
- アーカイブ
- 旧Boost日本語化プロジェクト
- document
- 各ライブラリの翻訳ドキュメント
- Boost.Compatibilty ライブラリ
- mem_fn.hpp
- §ヘッダファイル(Header) <[boost/static_assert.hpp](http://www.boost.org/doc/libs/1_31_0/boost/static_assert.hpp)>
- Header <[boost/type_traits.hpp](http://www.boost.org/doc/libs/1_31_0/boost/type_traits.hpp)>
- Array wrapper library
- bind.hpp
- 非推奨: Compose library
- The Boost Concept Check Library (BCCL)
- Boost Conversion Library
- Boost Date-Time Library Documentation
- Disjoint Sets(互いに素な集合)
- Boost Format library
- Header `<boost/function.hpp>`
- Improved Function Object Adapters
- the Boost Graph Library
- io
- The Boost Lambda Library
- Boost Math Library
- Boost.MultiArray
- Boost Pool Library
- Boost Preprocessor Library
- Boost Random Number Library
- Rational Number Library
- regex++, Index
- Boost.Signals
- Smart Pointer Library
- The Boost Tuple Library
- utility
- document
- C++オンライン読書会
- 提案予定プロジェクト
- 旧Boost日本語化プロジェクト
- BoostCon
- C++Now!
- ドキュメント
- editors_doc
- Boost.勉強会
- Boost逆引きリファレンス