db_vector(Db *dbp=NULL, DbEnv *penv=NULL)
Constructor.
Note that we do not need an allocator in db-stl containser, but we need backing up Db* and DbEnv*, and we have to verify that the passed in bdb handles are valid for use by the container class. See class detail for handle requirement.
The same as that of db_container(Db*, DbEnv*) ;
The same as that of db_container(Db*, DbEnv*) ;
db_vector(size_type n, const T &val=T(), Db *dbp=NULL, DbEnv *penv=NULL)
Constructor.
This function supports auto-commit. Insert n elements of T type into the database, the value of the elements is the default value or user set value. See class detail for handle requirement.
The same as that of db_container(Db*, DbEnv*) ;
The same as that of db_container(Db*, DbEnv*) ;
db_vector(const self &x)
Copy constructor.
This function supports auto-commit. Insert all elements in x into this container.
db_vector(Db *dbp, DbEnv *penv, InputIterator first, InputIterator last)
Insert a range of elements into this container.
The range is [first, last), which contains elements that can be converted to type T automatically. See class detail for handle requirement.
The same as that of db_container(Db*, DbEnv*) ;
The same as that of db_container(Db*, DbEnv*) ;
db_vector(const_iterator first, const_iterator last, Db *dbp=NULL, DbEnv *penv=NULL)
Range constructor.
This function supports auto-commit. Insert the range of elements in [first, last) into this container. See class detail for handle requirement.
The same as that of db_container(Db*, DbEnv*) ;
The same as that of db_container(Db*, DbEnv*) ;