core: iterator: added inline definition of is_valid()
This commit is contained in:
@@ -83,7 +83,10 @@ BLUE_API b_status b_iterator_move_next(const b_iterator *it);
|
|||||||
BLUE_API b_iterator_value b_iterator_get_value(b_iterator *it);
|
BLUE_API b_iterator_value b_iterator_get_value(b_iterator *it);
|
||||||
BLUE_API const b_iterator_value b_iterator_get_cvalue(const b_iterator *it);
|
BLUE_API const b_iterator_value b_iterator_get_cvalue(const b_iterator *it);
|
||||||
BLUE_API b_status b_iterator_erase(b_iterator *it);
|
BLUE_API b_status b_iterator_erase(b_iterator *it);
|
||||||
BLUE_API b_status b_iterator_is_valid(const b_iterator *it);
|
static inline bool b_iterator_is_valid(const b_iterator *it)
|
||||||
|
{
|
||||||
|
return B_OK(b_iterator_get_status(it));
|
||||||
|
}
|
||||||
|
|
||||||
B_DECLS_END;
|
B_DECLS_END;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user