[PATCH] D117115: [llvm][ADT] Implement `BitVector::{pop_,}back`
Jan Svoboda via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 12 07:10:35 PST 2022
jansvoboda11 created this revision.
jansvoboda11 added a reviewer: dexonsmith.
jansvoboda11 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
LLVM Programmer’s Manual strongly discourages the use of `std::vector<bool>` and suggests `llvm::BitVector` as a possible replacement.
Currently, some users of `std::vector<bool>` cannot switch to `llvm::BitVector` because it doesn't implement the `pop_back()` and `back()` functions.
To enable easy transition of `std::vector<bool>` users, this patch implements `llvm::BitVector::pop_back()` and `llvm::BitVector::back()`.
Depends on D117114 <https://reviews.llvm.org/D117114>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117115
Files:
llvm/include/llvm/ADT/BitVector.h
llvm/include/llvm/ADT/SmallBitVector.h
llvm/unittests/ADT/BitVectorTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117115.399321.patch
Type: text/x-patch
Size: 2990 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220112/c896bf11/attachment.bin>
More information about the llvm-commits
mailing list