Skip to content

Commit b2715bf

Browse files
committed
update docs now
1 parent 891327a commit b2715bf

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

library/data_structures_[l,r)/bit_uncommon/walk_lambda.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//! @code
2+
//! bit.walk([&](int r, ll sum) -> bool {
3+
//! // sum = a[0] + a[1] + ... + a[r - 1]
4+
//! });
5+
//! @endcode
16
void walk(const auto& f) {
27
ll sum = 0;
38
for (int i = bit_floor(size(s)), r = 0; i; i /= 2)

library/data_structures_[l,r]/bit_uncommon/walk_lambda.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//! @code
2+
//! bit.walk([&](int r, ll sum) -> bool {
3+
//! // sum = a[0] + a[1] + ... + a[r]
4+
//! });
5+
//! @endcode
16
void walk(const auto& f) {
27
ll sum = 0;
38
for (int i = bit_floor(size(s)), r = 0; i; i /= 2)

0 commit comments

Comments
 (0)