Added typedef for const shared_ptr

release/4.3a0
Richard Roberts 2012-03-22 17:46:39 +00:00
parent da70164987
commit 13ce0e59f0
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,9 @@ namespace gtsam {
/// A shared_ptr to this class /// A shared_ptr to this class
typedef boost::shared_ptr<Values> shared_ptr; typedef boost::shared_ptr<Values> shared_ptr;
/// A const shared_ptr to this class
typedef boost::shared_ptr<const Values> const_shared_ptr;
/// A key-value pair, which you get by dereferencing iterators /// A key-value pair, which you get by dereferencing iterators
struct KeyValuePair { struct KeyValuePair {
const Key key; ///< The key const Key key; ///< The key