Adds comment clarifying the use of default-constructed matchers.
This commit is contained in:
parent
2321b2a675
commit
88032d8e0f
|
@ -250,8 +250,9 @@ class MatcherBase {
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class Matcher : public internal::MatcherBase<T> {
|
class Matcher : public internal::MatcherBase<T> {
|
||||||
public:
|
public:
|
||||||
// Constructs a null matcher. Needed for storing Matcher objects in
|
// Constructs a null matcher. Needed for storing Matcher objects in STL
|
||||||
// STL containers.
|
// containers. A default-constructed matcher is not yet initialized. You
|
||||||
|
// cannot use it until a valid value has been assigned to it.
|
||||||
Matcher() {}
|
Matcher() {}
|
||||||
|
|
||||||
// Constructs a matcher from its implementation.
|
// Constructs a matcher from its implementation.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user