boostorg / boostorg/multiprecision

Feature request: View-type for numbers

Open
#558 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
265
Forks
128
Avg merge
4h 48m
Merged PRs (30d)
2

Description

Hi there,
is there any plan to have a "view" type for numbers? (I.e. something like what `std::string_view` is to `std::string`)?

The usecase we had in mind would be a type "views" into the internals of a boost multiprecision number stored in some user defined backend storage, and is primarily used for the purpose of abstracting away the allocator on the backend-frontend interface boundary (like `std::basic_string_view` can do for `std::basic_string`). I know, that is potentially quite a niche usecase.

So, basically 3 questions:
1. Like I asked on top: Is there already a plan to implement something like this?
2. If there isn't any plan: Would you accept a contribution?
3. If you do accept contributions: Do you foresee any major blockers that would prevent the implementation of that feature?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.