Comments (2)
Hello!
I have a requirement to find the smallest element greater than a given key and the largest element smaller than the key.
Initially, I expected to use the lower_bound() method of Accessor to get the iterator of the first element greater than or equal to the key, and then decrement it to obtain the iterator of the first element smaller than the key. However, when I was writing the code, I found that the iterator does not support the -- operator.
Do you have any good suggestions on how to implement my requirement? Thank you!Hi, do you can sent your code? because that makes it difficult to help
Because iterators has suport the ++, --, but depends in how you are make.
from folly.
Do you can sent the your code?
from folly.
Related Issues (20)
- error: no template named 'unordered_map' in namespace 'std'; did you mean 'unordered_set'?
- RequestContext changed after co_await. HOT 2
- [MSVC] Folly failed to build due to error C2338: static_assert failed: 'Cannot format an argument. To make type T formattable provide a formatter<T> specialization HOT 7
- [regression in 2023.06.19.00] error: static_assert failed due to requirement 'formattable' "Cannot format an argument. ... HOT 3
- Can folly support localhost ? HOT 1
- MSVC, fail building folly with `/fsanitize=address` CXX flag HOT 2
- [Mac M1] Failed to use Folly on Mac M1 HOT 1
- [Speed Test] Why is MPMCQueue significantly faster than ProducerConsumerQueue? HOT 1
- Folly can not be built on Linux as shared library HOT 3
- Checksum performance is slow on Arm64 HOT 1
- Installation with homebrew fails (Mac) HOT 6
- Tests fail to compile: error: 'auto' not allowed in function prototype HOT 7
- Compile error: class template argument deduction failed HOT 2
- makeFuture exception
- folly & double-conversion: Unable to build surround360_render
- Spawning contexts that form non converging sequences in a non deterministic way, missing data, and memory problems.
- Issue with folly & double-conversion: Unable to build surround360_render HOT 2
- comment about encodeZigZag in Varint.h is wrong.
- complie erron on windows msvc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from folly.