![]() |
Home | Libraries | People | FAQ | More |
Copyright c 2006 -2007 Matias Capeletto
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Table of Contents 目錄
Boost.Bimap is a bidirectional maps library for C++. With Boost.Bimap you can
create associative containers in which both types can be used as key. A bimap<X,Y> can be thought of as a combination of a
std::map<X,Y>
and a std::map<Y,X>.
The learning curve of bimap is almost flat if you know how to use standard
containers. A great deal of effort has been put into mapping the naming scheme
of the STL in Boost.Bimap. The library is designed to match the common STL
containers.
Boost.Bimap 是一個C++的雙向 map 庫。使用 Boost.Bimap,你可以創建兩個類型都可用作鍵值的關聯容器。bimap<X,Y> 可以被視為
std::map<X,Y> 加上 std::map<Y,X>。如果你知道如何使用標準容器,那麼 bimap 的學習曲線就幾乎是平的。在 Boost.Bimap 中作出了大量的努力,以符合STL的命名規則。本庫是按照與常見STL容器相匹配的方式進行設計的。
The design of Boost.Bimap interface follows the standard template library. It has been strongly influenced by Joaquin Lopez Munoz's Boost.MultiIndex library (the heart of bimaps) and codeproject::bimap library.
Boost.Bimap 接口的設計是遵照標準模板庫的。它受到了 Joaquin Lopez Munoz 的 Boost.MultiIndex 庫(bimap 的核心)以及 codeproject::bimap 庫的強烈影響。
Last revised: March 15, 2008 at 13:59:41 GMT |