Skip to content

Commit 75dda24

Browse files
committed
Docs
1 parent 96fe434 commit 75dda24

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/features/aggregation/aggregation.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,13 @@ auto [hx_a, hxy_a] = sel_a.book(hx, hxy);
7979
The result of any single aggregation can be triggered by:
8080
```cpp
8181
auto hist = df.agg<Histogram<float>>(100,0,100).fill(column).book(selection);
82-
auto hist_result = hist.result();
82+
auto hist_result = hist.result(); // std::shared_ptr to boost::histogram object
8383
```
8484

85-
De-referencing the aggregation automatically triggers its result:
85+
The aggregation behaves as a pointer to its result, which is automatically triggered:
8686
```cpp
87-
hist->at(0); // first bin content
87+
hist->at(0); // equivalent to hist.result()->at(0);
88+
(*hist).at(0); // equivalent to above
8889
```
8990
9091
!!! note

0 commit comments

Comments
 (0)