| 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 |
|
|
| 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 |
|
| 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<>:: |
|
| 106 |
Dijkstra<>::SetPredMap<NullMap<Node,Arc> >::Create |
|
| 107 | 107 |
\endcode |
| ... | ... |
@@ -112,3 +112,3 @@ |
| 112 | 112 |
\code |
| 113 |
Dijkstra<>::SetDistMap<MyMap>::SetPredMap<NullMap<Node, |
|
| 113 |
Dijkstra<>::SetDistMap<MyMap>::SetPredMap<NullMap<Node,Arc> >::Create |
|
| 114 | 114 |
\endcode |
0 comments (0 inline)