osg/buffered_value
template<class T>
class buffered_value
template<class T>
class buffered_object
和std::vector有什么区别????应该是有些特殊操作,比如[]操作返回引用等
osgEarth/Containers
template<typename DATA>
struct fast_set
/**
* A std::map-like map that uses a vector and a getUID method for keying.
* DATA must have a getUID() method.
*/
template<typename KEY,typename DATA>
struct vector_map
/**
* A std::map-like container that is faster than std::map for small amounts
* of data accessed by a single user
*/
template<typename KEY, typename DATA>
struct fast_map
/**
* Least-recently-used cache class.
* K = key type, T = value type
*
* usage:
* LRUCache<K,T> cache;
* cache.put( key, value );
* LRUCache.Record rec = cache.get( key );
* if ( rec.valid() )
*
osg容器详解:与std::vector的区别

本文探讨osg学习的第一部分,主要关注osg提供的几种容器,并与常见的std::vector进行对比,分析它们在使用上的特殊性和差异,特别是对[]操作返回引用的特性。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



