📄 unconstrained_set_of.qbk
字号:
[/licenseBoost.BimapCopyright (c) 2006-2007 Matias CapelettoDistributed under the Boost Software License, Version 1.0.(See accompanying file LICENSE_1_0.txt or copy athttp://www.boost.org/LICENSE_1_0.txt)][/ QuickBook Document version 1.4 ][section unconstrained_set_of Reference][section Header "boost/bimap/unconstrained_set_of.hpp" synopsis] namespace boost { namespace bimaps { template< class KeyType > struct unconstrained_set_of; struct unconstrained_set_of_relation; } // namespace bimap } // namespace boost[endsect][section unconstrained_set_of Views]An unconstrained_set_of set view is a view with no constraints. The useof these kind of view boost the bimap performance but the view can notbe accessed. An unconstrained view is an empty class. namespace boost { namespace bimaps { namespace views { template< ``['-implementation defined parameter list-]`` > class ``['-implementation defined view name-]`` { // Empty view }; } // namespace views } // namespace bimap } // namespace boostIn the case of a `bimap< unconstrained_set_of<Left>, ... >`In the set view: typedef signature-compatible with relation< Left, ... > key_type; typedef signature-compatible with relation< Left, ... > value_type;In the left map view: typedef Left key_type; typedef ... data_type; typedef signature-compatible with std::pair< Left, ... > value_type;In the right map view: typedef ... key_type; typedef Left data_type; typedef signature-compatible with std::pair< ... , Left > value_type;[#unconstrained_set_of_complexity_signature][section Complexity signature]We adopt the scheme outlined in the[link complexity_signature_explanation complexity signature section].An unconstrained view can not be accessed by the user, but theformulas to find the order of an operation for a bimap hold withthe following definitions.The complexity signature of a `unconstrained_set_of` view is:* copying: `c(n) = 0`* insertion: `i(n) = 0`* hinted insertion: `h(n) = 0`* deletion: `d(n) = 0`* replacement: `r(n) = 0`* modifying: `m(n) = 0`[endsect][section Serialization]Views cannot be serialized on their own, but only as part of the`bimap` into which they are embedded. In describing the additionalpreconditions and guarantees associated to `list_of` views with respect toserialization of their embedding containers, we use the concepts defined in the`bimap` serialization section.[blurb [*Operation:] saving of a `bimap` b to an output archive(XML archive) ar.]* [*Requires:] No additional requirements to those imposed by the container.[blurb [*Operation:] loading of a `bimap` b' from an input archive(XML archive) ar.]* [*Requires:] No additional requirements to those imposed by the container.[endsect][endsect][endsect]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -