From the view of the function a pre-condition can be assumed, a post-condition has to be ensured with the code in the function.

And the opposite for the caller.
 

-----Ursprüngliche Nachricht-----
Von: Light And Ray via Std-Proposals <std-proposals@lists.isocpp.org>
Gesendet: Mo 24.08.2026 12:57
Betreff: [std-proposals] Using [[assume]] attribute in contracts pre() and post() blocks
An: std-proposals@lists.isocpp.org;
CC: Light And Ray <light.and.ray@gmail.com>;
-- 
 Std-Proposals mailing list
 Std-Proposals@lists.isocpp.org
 https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals