gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
Improvements in named-param.dox (ticket #147)
0 1 0
default
1 file changed with 11 insertions and 11 deletions:
↑ Collapse diff ↑
Ignore white space 2 line context
1
/* -*- C++ -*-
1
/* -*- mode: C++; indent-tabs-mode: nil; -*-
2 2
 *
3
 * This file is a part of LEMON, a generic C++ optimization library
3
 * This file is a part of LEMON, a generic C++ optimization library.
4 4
 *
... ...
@@ -27,3 +27,3 @@
27 27
especially comfortable in case of a function having tons of parameters
28
with natural default values. Sadly, C++ lack this amenity. 
28
with natural default values. Sadly, C++ lack this amenity.
29 29

	
... ...
@@ -34,3 +34,3 @@
34 34
\code
35
class namedFn 
35
class namedFn
36 36
{
... ...
@@ -39,3 +39,3 @@
39 39
  int _dim;
40
  
40

	
41 41
  public:
... ...
@@ -47,5 +47,5 @@
47 47
  run() {
48
  std::cout << "Here comes the function itself\n" <<
49
            << "With parameters "
50
            << _id << ", " << _val << ", " << _dim << std::endl; 
48
    std::cout << "Here comes the function itself\n" <<
49
              << "With parameters "
50
              << _id << ", " << _val << ", " << _dim << std::endl;
51 51
  }
... ...
@@ -78,3 +78,3 @@
78 78

	
79
A named parameter can also be a template functions. The usage is
79
A named parameter can also be a template function. The usage is
80 80
exactly the same, but the implementation behind is a kind of black
... ...
@@ -105,3 +105,3 @@
105 105
\code
106
Dijkstra<>::SetPredNodeMap<NullMap<Node,Node> >::Create
106
Dijkstra<>::SetPredMap<NullMap<Node,Arc> >::Create
107 107
\endcode
... ...
@@ -112,3 +112,3 @@
112 112
\code
113
Dijkstra<>::SetDistMap<MyMap>::SetPredMap<NullMap<Node,Edge> >::Create
113
Dijkstra<>::SetDistMap<MyMap>::SetPredMap<NullMap<Node,Arc> >::Create
114 114
\endcode
0 comments (0 inline)