0
2
0
| ... | ... |
@@ -46,12 +46,14 @@ |
| 46 | 46 |
|
| 47 | 47 |
typedef typename Parent::Key Key; |
| 48 | 48 |
typedef typename Parent::Value Value; |
| 49 | 49 |
typedef typename Parent::Reference Reference; |
| 50 | 50 |
typedef typename Parent::ConstReference ConstReference; |
| 51 | 51 |
|
| 52 |
typedef typename Parent::ReferenceMapTag ReferenceMapTag; |
|
| 53 |
|
|
| 52 | 54 |
class MapIt; |
| 53 | 55 |
class ConstMapIt; |
| 54 | 56 |
|
| 55 | 57 |
friend class MapIt; |
| 56 | 58 |
friend class ConstMapIt; |
| 57 | 59 |
|
| ... | ... |
@@ -188,12 +190,14 @@ |
| 188 | 190 |
|
| 189 | 191 |
typedef typename Parent::Key Key; |
| 190 | 192 |
typedef typename Parent::Value Value; |
| 191 | 193 |
typedef typename Parent::Reference Reference; |
| 192 | 194 |
typedef typename Parent::ConstReference ConstReference; |
| 193 | 195 |
|
| 196 |
typedef typename Parent::ReferenceMapTag ReferenceMapTag; |
|
| 197 |
|
|
| 194 | 198 |
class MapIt; |
| 195 | 199 |
class ConstMapIt; |
| 196 | 200 |
|
| 197 | 201 |
friend class MapIt; |
| 198 | 202 |
friend class ConstMapIt; |
| 199 | 203 |
| ... | ... |
@@ -179,13 +179,14 @@ |
| 179 | 179 |
|
| 180 | 180 |
/// Sets the value associated with the given key. |
| 181 | 181 |
void set(const Key &k,const Value &t) { operator[](k)=t; }
|
| 182 | 182 |
|
| 183 | 183 |
template<typename _ReferenceMap> |
| 184 | 184 |
struct Constraints {
|
| 185 |
|
|
| 185 |
typename enable_if<typename _ReferenceMap::ReferenceMapTag, void>::type |
|
| 186 |
constraints() {
|
|
| 186 | 187 |
checkConcept<ReadWriteMap<K, T>, _ReferenceMap >(); |
| 187 | 188 |
ref = m[key]; |
| 188 | 189 |
m[key] = val; |
| 189 | 190 |
m[key] = ref; |
| 190 | 191 |
m[key] = cref; |
| 191 | 192 |
own_ref = m[own_key]; |
0 comments (0 inline)