From 3b5fdbec36bee2c41b39f8f29148cc6e203dc8f6 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Thu, 5 Apr 2001 02:11:11 +0000 Subject: [PATCH] added LvaluePropertyGraphConcept [SVN r9710] --- include/boost/graph/graph_concepts.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/boost/graph/graph_concepts.hpp b/include/boost/graph/graph_concepts.hpp index df298b70..8f660f73 100644 --- a/include/boost/graph/graph_concepts.hpp +++ b/include/boost/graph/graph_concepts.hpp @@ -391,6 +391,24 @@ namespace boost { typename property_traits::value_type pval; }; + template + struct LvaluePropertyGraphConcept + { + typedef typename property_map::type Map; + void constraints() { + function_requires< ReadablePropertyGraphConcept >(); + function_requires< Mutable_LvaluePropertyMapConcept >(); + + 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::value_type pval; + }; + // This needs to move out of the graph library template struct BufferConcept