From 7778efce5c6275b1c60a41a044bf6e929efbbc7f Mon Sep 17 00:00:00 2001 From: Brett Date: Sat, 29 Jun 2024 23:18:32 -0400 Subject: [PATCH] docs --- CMakeLists.txt | 2 +- include/blt/std/utility.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3ad224..db2dad4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.17.22) +set(BLT_VERSION 0.17.23) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/std/utility.h b/include/blt/std/utility.h index 749a2cc..dafbea3 100644 --- a/include/blt/std/utility.h +++ b/include/blt/std/utility.h @@ -97,6 +97,9 @@ namespace blt /** * means that the return value is solely a function of the arguments, * and if any of the arguments are pointers, then the pointers must not be dereferenced. + * Calls to functions whose return value is not affected by changes to the observable state of the program + * and that have no observable effects on such state other than + * to return a value may lend themselves to optimizations such as common subexpression elimination. */ #define BLT_ATTRIB_NO_SIDE_EFFECTS __attribute__((const)) /**