2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-01 20:42:11 +00:00

added LvaluePropertyGraphConcept

[SVN r9710]
This commit is contained in:
Jeremy Siek
2001-04-05 02:11:11 +00:00
parent c0227802dc
commit 3b5fdbec36

View File

@@ -391,6 +391,24 @@ namespace boost {
typename property_traits<Map>::value_type pval;
};
template <class G, class X, class Property>
struct LvaluePropertyGraphConcept
{
typedef typename property_map<G, Property>::type Map;
void constraints() {
function_requires< ReadablePropertyGraphConcept<G, X, Property> >();
function_requires< Mutable_LvaluePropertyMapConcept<Map, X> >();
Map pmap = get(Property(), g);
pval = get(Property(), g, x);
put(Property(), g, x, pval);
ignore_unused_variable_warning(pmap);
}
G g;
X x;
typename property_traits<Map>::value_type pval;
};
// This needs to move out of the graph library
template <class B>
struct BufferConcept