| 237 | this->Snapshot_.Position->LinkDirectoriesPosition, vec); |
| 238 | } |
| 239 | void cmStateDirectory::PrependLinkDirectoriesEntry(const BT<std::string>& vec) |
| 240 | { |
| 241 | auto entryEnd = this->DirectoryState->LinkDirectories.begin() + |
| 242 | this->Snapshot_.Position->LinkDirectoriesPosition; |
| 243 | |
| 244 | auto rend = this->DirectoryState->LinkDirectories.rend(); |
| 245 | auto rbegin = cm::make_reverse_iterator(entryEnd); |
| 246 | rbegin = std::find(rbegin, rend, cmStateDetail::PropertySentinel); |
| 247 | |
| 248 | auto entryIt = rbegin.base(); |
| 249 | |
| 250 | this->DirectoryState->LinkDirectories.insert(entryIt, vec); |
| 251 | |
| 252 | this->Snapshot_.Position->LinkDirectoriesPosition = |
| 253 | this->DirectoryState->LinkDirectories.size(); |
| 254 | } |
| 255 | |
| 256 | void cmStateDirectory::SetLinkDirectories(const BT<std::string>& vec) |
| 257 | { |