Skip to content

Commit 52833ff

Browse files
committed
refactored is_empty() with std::vector::empty()
1 parent 7fbe096 commit 52833ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/functional_vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ class functional_vector
11321132
// Returns true if the vector has no elements
11331133
bool is_empty() const
11341134
{
1135-
return size() == 0;
1135+
return backing_vector_.empty();
11361136
}
11371137

11381138
// Returns the underlying capacity of the vector, which can be larger from its size

0 commit comments

Comments
 (0)