feat(composition): added stl compatible iterator
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user