Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index concept discussion #252

Open
elshize opened this issue Sep 15, 2019 · 0 comments
Open

Index concept discussion #252

elshize opened this issue Sep 15, 2019 · 0 comments

Comments

@elshize
Copy link
Member

elshize commented Sep 15, 2019

template <typename T, typename C>
concept bool IndexLike = CursorLike<C> && requires(T index, TermId termid)
{
    { index.cursor(termid) } -> C;
    { index.num_documents() } -> std::size_t;
    { index.num_terms() } -> std::size_t;
};
@elshize elshize added this to the v1.0 milestone Sep 15, 2019
@elshize elshize mentioned this issue Sep 15, 2019
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant