* 注释修正
This commit is contained in:
+1
-3
@@ -184,6 +184,4 @@ add_subdirectory ("project/dl_console")
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/project/dl_config/CMakeLists.txt)
|
||||
message("------------------解析dl_config-----------------------")
|
||||
add_subdirectory ("project/dl_config")
|
||||
endif()
|
||||
|
||||
|
||||
endif()
|
||||
@@ -300,8 +300,10 @@ T r_insert_per_num(const T& container, V v, size_t per_num)
|
||||
* @param[in] delimiter 分割符
|
||||
* @param[out] ret 返回分割之后的
|
||||
*
|
||||
* @note 返回数量必定为分割符数量+1
|
||||
* @note 空容器返回空,其余返回数量必定为分割符数量+1
|
||||
*
|
||||
* @remarks {} -> {}
|
||||
* @remarks {1} -> {1}
|
||||
* @remarks {1,2,2,5,} -> {1 2 2 5 0}
|
||||
* @remarks {,1,2,2,5} -> {0 1 2 2 5}
|
||||
* @remarks {,,1,,,2,2,5} -> {0 0 1 0 0 2 2 5}
|
||||
@@ -309,7 +311,8 @@ T r_insert_per_num(const T& container, V v, size_t per_num)
|
||||
template<typename T, typename V>
|
||||
void split(const T& container, V delimiter, std::vector<T>& ret)
|
||||
{
|
||||
if (container.empty())return;
|
||||
if (container.empty())
|
||||
return;
|
||||
|
||||
//主迭代器位置
|
||||
auto iter_begin = container.begin();
|
||||
@@ -365,7 +368,8 @@ void split(const T& container, V delimiter, std::vector<T>& ret)
|
||||
template<typename T, typename V>
|
||||
void split_no_empty(const T& container, V delimiter, std::vector<T>& ret)
|
||||
{
|
||||
if (container.empty())return;
|
||||
if (container.empty())
|
||||
return;
|
||||
|
||||
//主迭代器位置
|
||||
auto iter_begin = container.begin();
|
||||
|
||||
Reference in New Issue
Block a user