[odb-users] Query on non-empty container in view

Lukas Obermann obermann.lukas at gmail.com
Tue Oct 25 04:59:19 EDT 2016


Hi All,

a question which I can not find any solution in the docs or via google.
So, having a class that has some containers
(std::vector<odb::lazy_shared_ptr>) in a class and a view on top of that to
access the elements.

What is the recommended way of querying that the vector must have at least
one element in it? The view is not providing access to the vector itself
(as stated in the docs) but getting the objects out via a object loading
view seems also to not offer the correct functions.

Thanks again for the help,
Lukas


More information about the odb-users mailing list