Commit dbbc28a6 authored by Philip Trettner's avatar Philip Trettner
Browse files

moved property::view to impl

parent 07ddb197
#pragma once
#include "../properties.hh"
namespace polymesh
{
template <class CollectionT, class FuncT>
template <class Func2T>
auto readonly_property<CollectionT, FuncT>::view(Func2T&& f) const -> readonly_property<readonly_property<CollectionT, FuncT>, Func2T>
{
return {*this, f};
}
}
......@@ -23,11 +23,7 @@ struct readonly_property
int size() const { return mCollection.size(); }
template <class Func2T>
auto view(Func2T&& f) const -> readonly_property<readonly_property<CollectionT, FuncT>, Func2T>
{
// TODO: move to impl_properties
return {*this, f};
}
auto view(Func2T&& f) const -> readonly_property<readonly_property<CollectionT, FuncT>, Func2T>;
private:
CollectionT mCollection;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment