feat(composition): added stl compatible iterator

This commit is contained in:
2025-07-04 05:35:29 -04:00
parent 2dc8d20855
commit 684e3e7b5a
2 changed files with 17 additions and 1 deletions

View File

@@ -18,7 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# *********************************************************************** # # *********************************************************************** #
project('libcomposition', 'cpp', version: 'v1.2.0', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0') project('libcomposition', 'cpp', version: 'v1.3.0', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0')
# Add default visibility for all C++ targets # Add default visibility for all C++ targets
add_project_arguments('-fvisibility=default', language: 'cpp') add_project_arguments('-fvisibility=default', language: 'cpp')

View File

@@ -512,5 +512,21 @@ namespace fourdst::composition {
*/ */
Composition operator+(const Composition& other) const; Composition operator+(const Composition& other) const;
auto begin() {
return m_compositions.begin();
}
auto begin() const {
return m_compositions.cbegin();
}
auto end() {
return m_compositions.end();
}
auto end() const {
return m_compositions.cend();
}
}; };
}; // namespace fourdst::composition }; // namespace fourdst::composition