Add VariantVector class for populating a VARIANT or SAFEARRAY
Adding helper class VariantVector which can be populated similarly to an STL container but without the compile-time requirement of knowing what type will be stored. Internally represented as a vector of Scopedvariants with a uniform VARTYPE. - Can release ownership of its contents as either a Scalar VARIANT or, as a SAFEARRAY wrapped by a VARIANT. - When the vector is destructed, any remaining managed contents are released automatically. Also improving the ScopedVariant::Compare method to be able to handle some types that ::VarCmp cannot. e.g. VT_I1, VT_UI2, VT_UI4, VT_UI8, VT_UNKNOWN, VT_DISPATCH. Split out from : https://chromium-review.googlesource.com/c/chromium/src/+/2188057 Bug: 928948 AX-Relnotes: (Should not be user facing) Adjusted VARIANT comparisons to be more type-strict and adds support for a few previously unsupported VARTYPEs. Change-Id: I1e300bae6004ba17986643916e0a182f3e400da6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2243839Reviewed-by:Robert Liao <robliao@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Greg Thompson <grt@chromium.org> Reviewed-by:
Nektarios Paisios <nektar@chromium.org> Reviewed-by:
Kevin Babbitt <kbabbitt@microsoft.com> Commit-Queue: Adam Ettenberger <Adam.Ettenberger@microsoft.com> Cr-Commit-Position: refs/heads/master@{#787410}
Showing
base/win/variant_vector.cc
0 → 100644
This diff is collapsed.
base/win/variant_vector.h
0 → 100644
This diff is collapsed.
Please register or sign in to comment