LvaluePropertyMap:Provides an interface for accessing a reference to a property object (instead of a copy of the object as in the get() function required by ReadablePropertyMap).
template <class PMap, class Key> struct LvaluePropertyMapConcept { typedef typename property_traits<PMap>::category Category; typedef boost::lvalue_property_map_tag LvalueTag; typedef const typename property_traits<PMap>::value_type& const_reference; void constraints() { function_requires< ReadWritePropertyMapConcept<PMap, Key> >(); function_requires< ConvertibleConcept<Category, LvalueTag> >(); const_reference ref = pmap[k]; } PMap pmap; Key k; }; template <class PMap, class Key> struct Mutable_LvaluePropertyMapConcept { typedef typename property_traits<PMap>::category Category; typedef boost::lvalue_property_map_tag LvalueTag; typedef typename property_traits<PMap>::value_type& reference; void constraints() { function_requires< ReadWritePropertyMapConcept<PMap, Key> >(); function_requires<ConvertibleConcept<Category, LvalueTag> >(); reference ref = pmap[k]; } PMap pmap; Key k; };
None
For additional information or queries on this page send feedback.
© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
Legal Disclaimer Please note, that by using some of the links in this document you will leave the Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. website and the site you enter is not operated by Nokia. If you choose to access such sites, you should take precautions for security or content. By using the site, you shall review and agree to the site's rules of use before using the site. You agree and acknowledge that Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. has no control over the service and will not assume any liability or responsibility for the availability of the site, nor for any aspects of the service.