mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: add move/swap semantics to string types and regExp
- move append() single element to List and DynamicList ENH: add stringOps::count to avoid unnecessary string conversions
This commit is contained in:
@ -99,6 +99,12 @@ inline Foam::string::string(const size_type len, const char c)
|
||||
{}
|
||||
|
||||
|
||||
inline Foam::string::string(std::string&& str)
|
||||
:
|
||||
std::string(std::move(str))
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class String>
|
||||
|
||||
Reference in New Issue
Block a user