Hi, Amitesh.
Forgive me omitted your "implementation" word.

As I know inplace_merge(), it is do malloc buffer memory to implement the
similar as merge().
But it will divide and conquer, when  available buffer is too small. (I
guess this will be what you wanna to know.)

You can open every STL source code(gcc, STLport or VC) find the
implementation at <algorithm>
have fun. :)

btw:
http://stackoverflow.com/questions/438012/stl-merge-without-buffer-algorithm
this
page may got some help.


On Thu, Oct 11, 2012 at 6:23 PM, Amitesh Singh <singh.amit...@gmail.com>wrote:

> Thanks for the reply. Yes. I know that. Can you please provide a working
> code? C or C++
>
> Regards
> --
> Amitesh
>
>
>
>
> On Thu, Oct 11, 2012 at 2:47 PM, Hanlei Qin <qinhan...@gmail.com> wrote:
>
>> The inplace_merge() function is similar to the merge() function, but
>> instead of creating a new sorted range of elements, inplace_merge() alters
>> the existing ranges to perform the merge in-place.   --- cppreference.com
>>
>>
>> On Thu, Oct 11, 2012 at 4:02 PM, Amitesh Singh 
>> <singh.amit...@gmail.com>wrote:
>>
>>> Hi,
>>>
>>> Just wondering if anybody know the implementation of inplace_merge()
>>> defined in C++/STL (<algorithm> ?
>>>
>>>
>>> Source: http://www.cplusplus.com/reference/algorithm/inplace_merge/
>>>
>>>
>>>
>>> Thanks
>>> --
>>> Amitesh
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Algorithm Geeks" group.
>>> To post to this group, send email to algogeeks@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> algogeeks+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to