blob: 5671d8a5def21ef7246b1ce617fc87787c2785ff [file] [log] [blame]
Alexei Frolov41b32d32019-11-13 17:22:03 -08001.. default-domain:: cpp
2
3.. highlight:: sh
4
5.. _chapter-pw-result:
6
7---------
8pw_result
9---------
Ewout van Bekkum0d04fbc2020-07-23 15:58:04 -070010``pw::Result`` is a convenient wrapper around returning a Status along side some
11data when the status is OK. This is meant for returning lightweight result
12types or references to larger results.
13
14.. warning::
15
16 Be careful not to use larger types by value as this can quickly consume
17 unnecessary stack.
Alexei Frolov41b32d32019-11-13 17:22:03 -080018
19.. warning::
20
21 This module is experimental. Its impact on code size and stack usage has not
22 yet been profiled. Use at your own risk.
Ewout van Bekkum0d04fbc2020-07-23 15:58:04 -070023
24Compatibility
25=============
26Works with C++11, but some features require C++17.