[run] define some more constructors
This commit is contained in:
parent
e64dda95f6
commit
8253930cdd
@ -12,7 +12,19 @@ namespace base {
|
|||||||
public:
|
public:
|
||||||
typedef boost::optional<T> maybe;
|
typedef boost::optional<T> maybe;
|
||||||
|
|
||||||
explicit run(maybe begin = maybe(), maybe end = maybe())
|
run() {
|
||||||
|
}
|
||||||
|
|
||||||
|
explicit run(T const &b)
|
||||||
|
: begin_(b) {
|
||||||
|
}
|
||||||
|
|
||||||
|
run(T const &b, T const &e)
|
||||||
|
: begin_(b),
|
||||||
|
end_(e) {
|
||||||
|
}
|
||||||
|
|
||||||
|
explicit run(maybe begin, maybe end)
|
||||||
: begin_(begin),
|
: begin_(begin),
|
||||||
end_(end) {
|
end_(end) {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user