@@ -37,27 +37,29 @@ struct n1_t
3737 {
3838 num = 23063
3939 };
40- typedef vertex_property_tag kind;
40+
41+ using kind = vertex_property_tag;
4142};
4243struct n2_t
4344{
4445 enum
4546 {
4647 num = 23062
4748 };
48- typedef vertex_property_tag kind;
49+
50+ using kind = vertex_property_tag;
4951};
5052struct n3_t
5153{
5254 enum
5355 {
5456 num = 23061
5557 };
56- typedef vertex_property_tag kind;
58+
59+ using kind = vertex_property_tag;
5760};
58- typedef property< n1_t , int ,
59- property< n2_t , double , property< n3_t , MyStruct > > >
60- VertexProperty;
61+ using VertexProperty = property< n1_t , int ,
62+ property< n2_t , double , property< n3_t , MyStruct > > >;
6163
6264// ====== edge properties
6365struct e1_t
@@ -66,18 +68,18 @@ struct e1_t
6668 {
6769 num = 23064
6870 };
69- typedef edge_property_tag kind;
71+
72+ using kind = edge_property_tag;
7073};
71- typedef property< e1_t , double > EdgeProperty ;
74+ using EdgeProperty = property< e1_t , double >;
7275
7376// ===== graph types
7477
75- typedef adjacency_list< vecS, listS, directedS, no_property, no_property >
76- Graph1 ;
78+ using Graph1
79+ = adjacency_list< vecS, listS, directedS, no_property, no_property > ;
7780
78- typedef adjacency_list< setS, setS, bidirectionalS, VertexProperty,
79- EdgeProperty >
80- Graph2;
81+ using Graph2 = adjacency_list< setS, setS, bidirectionalS, VertexProperty,
82+ EdgeProperty >;
8183
8284int main ()
8385{
@@ -103,7 +105,7 @@ int main()
103105 // read Graph2, incomplete data in a different order. Write it diffently.
104106 Graph2 g31;
105107 std::ifstream readFile31 (" data3.txt" );
106- typedef property< n3_t , MyStruct, property< n1_t , int > > readNodeProp ;
108+ using readNodeProp = property< n3_t , MyStruct, property< n1_t , int > >;
107109 readFile31 >> read (g31, readNodeProp (), EdgeProperty ());
108110 std::cout << " graph g31 from file data3.txt:\n "
109111 << write (g31, property< n3_t , MyStruct >(), EdgeProperty ())
0 commit comments