mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Added has_value() as an alias for is_value()
For consistency with STL
This commit is contained in:
parent
890195f3b4
commit
d648e27b7f
@ -160,6 +160,14 @@ namespace etl
|
||||
return *this;
|
||||
}
|
||||
|
||||
//*******************************************
|
||||
/// <b>true</b> if result contains a value
|
||||
//*******************************************
|
||||
bool has_value() const
|
||||
{
|
||||
return (data.index() == 0U);
|
||||
}
|
||||
|
||||
//*******************************************
|
||||
/// <b>true</b> if result contains a value
|
||||
//*******************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user