Make Vector<T>::duplicate() const

Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
This commit is contained in:
David Snopek
2025-11-01 14:00:38 -05:00
parent fc58be9bfc
commit bc9f3c7d92
13 changed files with 64 additions and 11 deletions

View File

@ -184,10 +184,16 @@ public:
return span().bisect(p_value, p_before, Comparator{ args... });
}
Vector<T> duplicate() {
Vector<T> duplicate() const {
return *this;
}
#ifndef DISABLE_DEPRECATED
Vector<T> _duplicate_bind_compat_112290() {
return *this;
}
#endif // DISABLE_DEPRECATED
void ordered_insert(const T &p_val) {
Size i;
for (i = 0; i < _cowdata.size(); i++) {