MCPcopy Create free account
hub / github.com/dhbloo/rapfi / insert

Method insert

Rapfi/external/cpptoml/include/cpptoml.h:939–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937 */
938 template <class T>
939 iterator insert(iterator position, const std::shared_ptr<value<T>>& value)
940 {
941 if (values_.empty() || values_[0]->as<T>())
942 {
943 return values_.insert(position, value);
944 }
945 else
946 {
947 throw array_exception{"Arrays must be homogenous."};
948 }
949 }
950
951 /**
952 * Insert an array into the array

Callers 15

setMethod · 0.45
setBoardTextMethod · 0.45
copyBoardTextFromMethod · 0.45
recursiveDeleteChildrenFunction · 0.45
build_numa_tableFunction · 0.45
makeFileListFromPathListFunction · 0.45
FOR_EVERY_CAND_POSFunction · 0.45
initTuneEntriesMethod · 0.45
addParamsMethod · 0.45
parse_positionalMethod · 0.45
insertMethod · 0.45
cloneMethod · 0.45

Calls 3

make_valueFunction · 0.85
emptyMethod · 0.45
is_arrayMethod · 0.45

Tested by

no test coverage detected